ScratchData LogoScratchData
Back to TNTninja101's profile

Curving line generative art

TNTNTninja101•Created February 25, 2018
Curving line generative art
7
2
55 views
View on Scratch

Instructions

What this does is it creates a number of random points, then draws a line from one to the others, the catch is, the line has a certain angle sharpness that it must follow, so you get these big swooping curves, and occasionally spirals that generate. Press space to show variables: AFTER YOU CHANGE A VARIABLE, RESTART THE PROJECT. - S min: The minimum color saturation possible (between 0 and 100) - S max: The maximum color saturation possible (between 0 and 100) - V min: The minimum color value possible (between 0 and 100) - V max: The maximum color value possible (between 0 and 100) - A min: The minimum alpha value possible (between 0 and 255) - A max: The maximum alpha value possible (between 0 and 255) - Angle sharpness: The sharpness of the angles the line can make (higher values create straighter lines) - Points: The number of random points generated - Pen size: The size of the thinnest line - Accuracy: How close to the random point the line has to be before moving to the next random point (the lower the value, the more intense spirals you get)

Description

Fun fact: In order to make the awesome rainbow spectrum for the line I had to translate HSV colors (Hue, Saturation, and Value) into RGB colors (Red, Green, and Blue). Feel free to grab the translator inside the project, just give me credit if you use it.

Project Details

Project ID206103209
CreatedFebruary 25, 2018
Last ModifiedFebruary 25, 2018
SharedFebruary 25, 2018
Visibilityvisible
CommentsAllowed