Discuss Scratch

pixelqwerty
Scratcher
4 posts

Add ability to draw 2D shapes

It would really be nice if there was a way as part of the pen extension (or as a separate extension if it doesn't match the scope) to draw arbitrary filled and possibly textured basic shapes (ellipses, triangles, quads) that worked similar to the pen stamp block. Ellipses would probably be unnecessary difficult to implement and could be left out entirely. The problem I'm trying to solve is that manually drawing filled shapes using pen is quite slow even on fairly powerful systems (I have a decent machine and pen lags a good amount on it), and sprites alone are not malleable enough as you can't move the corners or warp them.


Here's some scratch blocks of my idea:


draw [ellipse v] from x: () y: () to x: () y: () :: pen
draw [triangle v] at 1st x: () y: () 2nd x: () y: () 3rd x: () y: () :: pen
draw [quadrilateral v] from x: () y: () to x: () y: () :: pen

draw [ellipse v] from x: () y: () to x: () y: () with costume area from x: () y: () to x: () y: () :: pen
draw [triangle v] at 1st x: () y: () 2nd x: () y: () 3rd x: () y: () with costume area at 1st x: () y: () 2nd x: () y: () 3rd x: () y: () :: pen
draw [quadrilateral v] from x: () y: () to x: () y: () with costume area from x: () y: () to x: () y: () :: pen

Last edited by pixelqwerty (May 4, 2025 12:42:52)

jmb1293634
Scratcher
1000+ posts

Add ability to draw 2D shapes

draw [unfilled v] [ellipse v] from x: () y:() to x:() y:()::pen//dropdown of filled/unfilled for first one and various shapes in second

draw [ellipse v] from x:() y:() to x:() y:() using the area in the costume from x:() y:() to x:() y:()::pen//dropdown of various shapes
edited them
I have never had problems with speed with mine and these would need a considerable extension to the block pallet
pixelqwerty
Scratcher
4 posts

Add ability to draw 2D shapes

Alright I updated my post using the feedback

  • I removed unfilled shapes since to draw borders, you could just use regular pen
  • I updated how ellipses and quads would work
  • Instead of using an image, I figured out scratch blocks
MESYETI
Scratcher
100+ posts

Add ability to draw 2D shapes

hello i support
jmb1293634
Scratcher
1000+ posts

Add ability to draw 2D shapes

MESYETI wrote:

hello i support
please give a reason why you support
kkidslogin
Scratcher
1000+ posts

Add ability to draw 2D shapes

I would love to see this. while textures might be excessive, the lack of basic shape drawing is a shame.
reigameru
Scratcher
8 posts

Add ability to draw 2D shapes

this would be cool, and it would definitely make using the pen easier and faster.
MESYETI
Scratcher
100+ posts

Add ability to draw 2D shapes

jmb1293634 wrote:

MESYETI wrote:

hello i support
please give a reason why you support

It would really be nice if there was a way as part of the pen extension (or as a separate extension if it doesn't match the scope) to draw arbitrary filled and possibly textured basic shapes (ellipses, triangles, quads) that worked similar to the pen stamp block. Ellipses would probably be unnecessary difficult to implement and could be left out entirely. The problem I'm trying to solve is that manually drawing filled shapes using pen is quite slow even on fairly powerful systems (I have a decent machine and pen lags a good amount on it), and sprites alone are not malleable enough as you can't move the corners or warp them.
Socky_Games
Scratcher
100+ posts

Add ability to draw 2D shapes

Uhm yeah this would be really useful especially for pen only projects and drawing engines theres really no downside to this I support

Powered by DjangoBB