hey whatsupp, i made this with godot engine because i was bored
I wanted to experiment a little bit with visuals, so i created a 45*45 px screen and just fucked around with it with some code.
Once i had the base program, i fucked around with a function that updates the screen a few times a second.
pic related is the result of the following code
var r = 0.5 var g = 0.5 var b = 0.5 for i in h_s: for a in w_s: r = r + rand_range(-0.4,0.4) g = g + rand_range(-0.4,0.4) b = b + rand_range(-0.4,0.4) var c = Color(r,g,b).to_html(false) scr[a][i].color(c)
i'm pretty sure i botched the embedded code but whatever
oh look, i didn't mess it up, nice t = (t+delta) for i in h_s: for a in w_s:[spoiler][/spoiler] var xd = ((i+1.0) / float(h_s * 2)) + ((a+1.0) / float(w_s * 2)) var cr = xd + sin(t + 1) var cg = xd + sin(t * 1.3) var cb = xd + cos(t + 3) var new_col = Color(cr,cg,cb).to_html(false) scr[a][i].color(new_col)
that's the code for this one, t is the time variable which pretty much makes this entire thing interesting (lol i find this shit interesting what a retard)
everybody's welcome to give me ideas or just send me straight up code and i'll plug it into the program.
this example was made by the following code for i in h_s: for a in w_s: var f = -0.01 var cr = scr[a][i].get_c().r var cg = scr[a][i].get_c().g var cb = scr[a][i].get_c().b var new_col = Color(cr+f,cg+f,cb+f).to_html(false) scr[a][i].color(new_col)
t += delta * 2 var nx = 23 + cos(t) * 16.5 var ny = 23 + sin(t*2) * 7.5 ny = int(ny) nx = int(nx) scr[nx%w_s][ny%h_s].color("ffffff")
i swear if this gets no replies ill kill myself, i spent like 30 mins recording all of these shitty examples
i hate myself for i in h_s: for a in w_s: var f = -0.01 var cr = scr[a][i].get_c().r var cg = scr[a][i].get_c().g var cb = scr[a][i].get_c().b var new_col = Color(cr+f,cg+f,cb+f).to_html(false) scr[a][i].color(new_col)
t += delta * 2
for i in 10: var nx = 0 + cos(t) * i*2 var ny = 23 + sin(t) * pow(i,1.5)* 1.7 ny = int(ny) nx = int(nx) scr[nx%w_s][ny%h_s].color("34a853")
for i in 10: var ny = 45 - cos(t) * i*2 var nx = 23 - sin(t) * pow(i,1.5)* 1.7 ny = int(ny) nx = int(nx) scr[nx%w_s][ny%h_s].color("4285f4")
#this goes at the startup function var px = [0,0,0] var py = [0,0,0]
randomize() for i in range(0,3): px[i] = randi() % w_s py[i] = randi() % h_s #this goes in the update function for i in h_s: for a in w_s: var f = -0.01 var cr = scr[a][i].get_c().r var cg = scr[a][i].get_c().g var cb = scr[a][i].get_c().b var new_col = Color(cr+f,cg+f,cb+f).to_html(false) if new_col == "000000": new_col = Color(rand_range(0,0.2),rand_range(0,0.2),rand_range(0,0.2)).to_html(false) scr[a][i].color(new_col)
for i in range(0,3): var c = Color(0,1,0).to_html(false) px[i] = (px[i] + int(rand_range(-2,2))) % w_s py[i] = (py[i] + int(rand_range(-2,2))) % h_s
Nice one OP. I like this stuff too. Came to love trigonometry as a result of playing with this stuff. I would post some YouTube links but I don't really want to expose myself to Jow Forums.
Levi Bennett
I like the thumbnail for this one. Looks like an interesting maze
Owen Perry
Reminds me of a thing I once made The pen moves according to a randomly generated formula. This random formula computes the pen direction and color changes based on bits from the pen position, color, and a few other things. The formula slowly mutates over time. So it'll draw different patterns (or sometimes just a straight line) as the formula changes.