Blockly - Shapes update v1.01 - Now with gradient fill

267 views
Skip to first unread message

Jim Brown

unread,
Aug 30, 2013, 6:14:25 PM8/30/13
to blo...@googlegroups.com
Hi all,

I am looking for additional feedback on what you think about my latest Blockly Shapes v1.01
Is it something which would appeal to children as a learning aid?
What about the command set. Does the naming make sense?




What's in there right now:
  • Move Cursor To - Move the drawing cursor to x/y
  • Draw Line To - Draw a line from the current cursor position to x/y
  • Draw Rectangle - Draw a rectangle (filled/unfilled) with width and height
  • Draw Circle - Draw a circle (filled/unfilled) with a given radius
  • Fill Mode - Sets whether or not rectangles, circles, or polygons are filled.
  • Draw Polygon. Draws (filled/unfilled) polygons constructed using Draw Line To blocks placed between the enclosure block
  • Set Line Width - Sets the width of lines as used for unfilled polygons, unfilled rects, unfilled circles, and single lines
  • Set Line Colour - Sets the outline colour for lines, unfilled polygons, unfilled rects, unfilled circles. Text colour shares this too,
  • Set Solid Fill Colour - Sets the solid colour for filled rects, filled circles, and filled polygons.
  • Set Gradient Fill Colour - Sets the vertical or horizontal gradient fill colour filled rects, filled circles, and filled polygons.
  • Canvas Width/Height - Return the canvas width and height
  • Hide / Show Cursor - Hide or show the drawing cursor
  • Draw Text - Draws text at the current drawing point

OTHER THOUGHTS
Have a separate Set Text Colour block. Currently text shares whatever the Line colour is set to. This is not too obvious though.

Drop Fill Mode On/Off system and incorporate the option into all blocks capable of producing filled versions?
For example, Draw [filled] circle with radius [32]  or Draw [unfilled] circle with radius [32]

TO DO:
Find a way how to return the drawing cursor x / y positions. Code is in place for get cursor position (x or y) but its currently returning only the initialised value regardless of where the drawing cursor is.



Regards, Jim
shape_101.zip
Reply all
Reply to author
Forward
0 new messages