ScratchData LogoScratchData
Back to DadOfMrLog's profile

Pen colour/saturation/shade blocks

DADadOfMrLog•Created September 26, 2013
Pen colour/saturation/shade blocks
152
116
5426 views
View on Scratch

Instructions

Demo of pen custom blocks - drag sliders to change hue, saturation and lightness (together known as HSL). >> More info: http://en.wikipedia.org/wiki/HSV_color_space << The values for Hue and Lightness correspond to those supplied to the built-in "set pen color" and (almost) "set pen shade" blocks. The saturation blocks provide an extra level of control over the pen colouring (its 'greyness'), not available through the built-in blocks.

Description

>>> UPDATE: FIxed silly bug in 'change pen colour' (tnx PZ7!) >>> UPDATE: Corrected all to HSL (from HSB) - thanks drmcw... >>> UPDATE: Added "change pen HSL by" block <<< The "set/change pen saturation" and "set/change pen HSL" allow extra pen control (not provided by the built-in pen blocks). When using these blocks, you also need to replace the built-in "set/change colour/shade" with the supporting blocks. SEE comments INSIDE for more info and examples. Note that the shade is very slightly different to the built-in shade, with zero producing absolute black (unlike the built-in pen block). Please scatter liberally and at will throughout your own projects :) (Though it'd be nice if Scratch had saturation built-in... please...?) Thanks to @Wes64test's recent RGB projects for reminding me that I should've made this project several months ago when I first created these blocks for use in InterXeptor 3D. And thanks to @JTxt for the original inspiration at that time! Also included in this project, for convenience, are the off-screen pen-drawing custom blocks, also first used in InterXeptor 3D, and previously released as a project for the first step of the 3D framework studio: http://scratch.mit.edu/studios/202972

Project Details

Project ID12713728
CreatedSeptember 26, 2013
Last ModifiedDecember 5, 2014
SharedSeptember 26, 2013
Visibilityvisible
CommentsAllowed