This project graphs color as a function of x and y. Color = f(x,y) This results in beautiful rainbow gradients. USE TURBO MODE! Choose a function to graph (z=color): 1 - Horizontal gradient: z = x 2- Vertical gradient: z = y 3 - Star: z^2 = xy 4 - Circle: z^2 = x^2 + y^2 5 - Diagonal: z = x-y 6 - Arch: z^2 - y = x^2 + y^2 7 - S-shape: z = x + sin (y) 8 - X: z = sin(x) + sin (y) 9 - Square: z = |x| + |y| a - Fanfold: z = x mod y b - Egg (oval): z^2 = x^2 + 2y^2 c - Corner: z = e^(ln x + ln y) Noise: 0 is no noise (smooth gradient), 50 is very noisy. 10-15 gives a nice effect. Rainbow copies: 1 is one complete gradient from color values 0-100. You can set the slider to up to 4 copies. To use a gradient in your project: Generate the gradient, take a screenshot, then import the screenshot into your project.
Uses the pen render script from the Scratch wiki: https://en.scratch-wiki.info/wiki/Render_Script And some inspiration from the examples: https://en.scratch-wiki.info/wiki/Pen_Art_Examples