Saturation and Value

197 views
Skip to first unread message

Sarah A

unread,
Jun 19, 2013, 5:11:21 PM6/19/13
to blo...@googlegroups.com
Hello,

I know that Saturation and Value are hard coded into Blockly but I want to change these values. In 'Blockly.js' I've changed them to (.1 and .85)  but I didn't see any changes, should I re-build Blockly after making changes to the original code?


Thanks,
Sarah

Neil Fraser

unread,
Jun 19, 2013, 5:14:51 PM6/19/13
to blo...@googlegroups.com
No need to edit the code and rebuild. Just set in YOUR code:
Blockly.HSV_SATURATION = 0.1;
This will change the value without needing to muck around inside
Blockly. Add this line in your code jut before you inject Blockly.
> --
> You received this message because you are subscribed to the Google Groups
> "Blockly" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blockly+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Neil Fraser
http://neil.fraser.name
Message has been deleted

Sarah A

unread,
Jul 9, 2013, 5:59:40 PM7/9/13
to blo...@googlegroups.com, ro...@neil.fraser.name
Thanks Neil for the helpful hint!
Reply all
Reply to author
Forward
0 new messages