WARNING: IT IS A TINY BIT LAGGY SO IF YOURE GOING TO DO SOMETHING ELSE PLEASE STOP THE PROJECT. DONT WORRY ITLL BE JUST LIKE YOU LEFT IT WHEN YOU PRESS THE FLAG INSTRUCTIONS: drag the lights towards or away from each other and watch them interact. brightness knob makes lights brighter this project is the result of 2 hours of boredom EXPLANATION FOR HOW THIS WORKS: (a bit techincal sorry it's late at night i can't function) TERMS: Alpha: opacity/transparency RGB: Red/Green/Blue. Represented each by a number from 0 to 255. 0 means that color isn't manifested at all and 256 is shining as bright as it can. By changing different vals of R, G and B we can create different colors. HOW TO MAKE ALPHA RGB PEN BLOCK: Set pen color to: 256^3 * (number from 1-255) (for alpha) + 256^2 + (number from 1-255) (for red) + 256 + (number from 1-255) (for green) + (number from 1-255) (for blue) HOW TO CREATE FADING AWAY EFFECT: Set alpha value (transparency) to 255*(1-f(dist)) where f(dist) is the distance to the closest light, manipulated to make it look prettier. in my case my formula was 255*(1-(brightness*dist)/600) so there is more of a gradient. i also multiplied the whole thing by a random number from like 0.81 to 1 so the light "shimmers" a bit. HOW TO CREATE COLOR BLENDING EFFECT create 2 arrays each with 3 items: each item corresponding to a color's RGB value respectively. set the red value to be equal to ((distance to light 1)*(Red val of light 2) + (distance to light 2)*(Red val of light 1))/(sum of both distances), and repeat with green and blue. it seems weird that i bunch the distance to one light with the red val of the other light, but this is because when the distance to something is 0, it actually means it's closer and thus its color should be stronger. thus, we make the opposing color's opacity smaller so that it can make room for the correct color to shine though. I could have also written (255-(distance to light 1)*(Red val of light 2)) and so on but i was too lazy to do that and the other way worked just fine lol. CREDITS: music is El Despertar by Alon Mor thanks to @junebeetle for some pointers on alpha pen color credit to @JTxt for his project that gave me insight into averaging RGB vals individually