Repository navigation
v1.4.0
New Features:
- Boolean switches. You can now do
<t>,<f>(small true and false boolean inputs), and<true>and<false>(for big (static) boolean inputs). - Scale and recolor text using the same syntax as Snap!,
$text-s-r-g-be.g.$text-2-0-255-0. - Icons can beused with $ instead of just @. This was added to make it even more similar to Snap! (also so it's easier to convert Snap! labels to snapblocks).
- Scaling and recoloring text can only be done with $, not @, @ is reserved for icons.
- Easier input creation in custom block prototypes.
- You can use
{[string] (number) <boolean>} :: define+to automatically get the correct upvar labels.
- You can use
- If there is
@loopor@loopArrowat the end of a line right after a c-slot, that will be placed on the right side of the block, making that c-slot have a loop arrow. - Colors can be set using rgb values instead of just a hex color code, using this syntax
rgb(r,g,b), for example,(color [rgb(0 , 255 , 255)] :: rgb(0,255,0)). - Allow for backslash in color input (to be text, rather than a color input),
<touching color [\#fff] ?>. - Add
@cloudGradient,@robot. - You can use either
listorlistsfor thelistscategory.
Changes:
- Refactored the Snap! style line rendering, to make it more like the Snap! source code (in fact, I just copy / pasted / edited from the Snap! source code).
- New color system, which calculates the colors in the code, which means that zebra coloring uses the exact same colors as Snap!.
- Remade the Snap!
turnRightandturnLefticons. - If a scale for an icon is set, the size will be 10 instead of 12.
@circleis no longer the same as@circleSolid, it's now a circle outline, like in Snap!.@flagis now not colored, whereas@greenFlagis (I also added@greenflagbecause snap 10 uses that).@loopis the full size loop, and@loopArrowis the scaled loop (again, from snap 10).@turtleis now scaled by 1.2.- Probably more that I'm forgetting.
Fixes
- Fixed the Snap! drop-shadow scaling on scaled icons.
- General improvements to the Snap! style.
- Fixed the Scratch 3 min hat width (scratchblocks#512).
- Fixed the line after the extension icon in the Scratch 3 style not showing up.
- Fixed some blocks that were improperly detected.
- Snap! custom blocks check for shape as as well as spec.
- Upvars are formatted correctly.
- Zebra coloring on upvars has been fixed (I didn't realize it was a problem before).
- And many more fixes.
Full Changelog: v1.3.0...v1.4.0