PLEASE READ EVERYTHING BEFORE USING!!! This is my first attempt at a triangle filler! It's quite slow (relative to others), but it does seem to work pretty well! It also supports transparency, and outline settings unlike most others (I think?). In the case of this triangle filler, smaller triangles will be filled much faster than larger ones. --------Instructions-------- -----General----- "Manual Mode": toggles randomly generated or custom triangles "Background": changes the background (who knew...) -----Manual Mode = 0----- "Num. Of Triangles To Generate": the number of triangles that will be randomly generated Press [G] to generate, [D] to draw, or click/[SPACE] to do both at the same time ---Calculated Variables--- "Generation Time": the length of time it took to generate the last set of triangles "Generation %": the percentage of triangles generated "Draw Time": the time it took to draw the triangles "Draw %": the percentage of triangles drawn -----Manual Mode = 1----- "Outline Colour": the colour of the outline of the triangle "Outline Brightness": the brightness of the outline colour "Outline Trans.": the transparency of the outline "Outline Width": the width of the outline "Point 1 X": the x position of point 1 on the triangle "Point 2 X": the x position of point 2 on the triangle "Point 3 X": the x position of point 3 on the triangle "Point 1 Y": the y position of point 1 on the triangle "Point 2 Y": the y position of point 2 on the triangle "Point 3 Y": the y position of point 3 on the triangle "Fill Width": the resolution of the fill (higher number = faster, but less accurate) "Fill Trans.": the transparency of the filled in part of the triangle "Outline Sat.": the saturation of the outline colour "Fill Colour": the colour the triangle is filled with "Fill Bright.": the brightness of the fill colour "Fill Sat.": the saturation of the fill colour
I don't know why I made this... It works ok though! :) See my new and improved version here: https://scratch.mit.edu/projects/500253888/ All code is by me. If it's similar to another triangle filler, then it's simply a coincidence. I specifically made a point of NOT looking at any other triangle fillers before making this. If you want to use this triangle filler in your own project(s), please give credit! The code you need is labeled as "Essential", and is near the bottom of the sprite named "All". Everything else is labeled "Non-essential", and is mostly just to make this project more interactive. Tags: #triangle #tri #angle #filler #fill #transparent #Hacker-Cat2