PLEASE READ INSTRUCTIONS BEFORE USING!!! This is my second attempt at a triangle filler! It's still a lot slower than some others, but it's over 2.5x faster than my first one! 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
Differences from the original: - Transparency is much more accurate (before, if you "squished" the triangles, they would get more opaque) - Over 2.5x faster *yay* - Uses more math (I consulted my geometry book to try and figure out how to calculate the height of the triangles. That failed, so using the same general order of functions I literally spent five minutes or so randomly switching variables around until the triangles looked right, and just left it like that. XD) Again, all code is by me. If you find any bugs let me know! (not the crawling kind...) If you want to use this triangle filler in your own project(s), please give credit! All the code you need is labeled as "You need this", and is near the bottom of the sprite named "All". Everything else is there to make the project more interactive. Tags: