Visual Experimentation

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

Attached: random_stripes.webm (640x640, 2.02M)

Other urls found in this thread:

pastebin.com/LZ5cSqRx
warosu.org/sci/thread/S9683962
twitter.com/AnonBabble

make something like random art.org

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)

Attached: lavalamp.webm (640x640, 1.77M)

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

Attached: infinite.webm (640x640, 121K)

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")

Attached: tron_dogshit.webm (640x640, 1.59M)

I like it

i'm just gonna post the rest out of commitment

#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

scr[(px[i]) % w_s][(py[i]) % h_s].color(c)
scr[(px[i]+1) % w_s][(py[i]+1) % h_s].color(c)
scr[(px[i]+2) % w_s][(py[i]+2) % h_s].color(c)
scr[(px[i]+3) % w_s][(py[i]+3) % h_s].color(c)

Attached: three_slashes.webm (640x640, 2.48M)

Id hate myself too if I had to program with python

thanks bro

the code for this one was too long, so pastebin.com/LZ5cSqRx

Attached: duff.webm (640x640, 878K)

lol yeah i fucking wish i was smart enough to use pure c++ on this bitch

you're welcome to drop some ideas if you want

>that code
really makes one think

>you're welcome to drop some ideas if you want
Idk, how about a water wave effect?

i really really like the way this looks
good job, user

Attached: 1432493656570.gif (320x288, 15K)

that's cool but it sounds hard, i'm gonna try and do some bubbles

I find this interesting

i failed and im going to sleep frens
thanks
thanks

get some good rest, user
sleep well
and dream of electric sheep

saved

today i will homer
mmm homer
homer good

neat thread user

>pastebin.com/LZ5cSqRx
hola amigo

rad

homero villero...

This is also known as "generative art". Nice work!

Thanks for posting user, very cool!

if you like this stuff you may wanna learn to play around with shaders

what language is this written in? how to make webm?

vary nice man i like it

fucking generates

You can check out this /sci/ thread for inspiration
warosu.org/sci/thread/S9683962

audibly chortled

Do the clover logo rotating while each part has a rotating gradient.

OP single handedly saved Jow Forums for today and for the days to come.

got inspired by OP and started making my own little stuff

Attached: pix.png (1366x797, 245K)

making interesting patterns by only changing a parameter or two

Attached: px2.png (1366x797, 243K)

this is the 2nd pic but with a modulo operator in there somewhere

Attached: px3.png (1369x799, 39K)

ok no more

Attached: px4.png (1364x798, 295K)

Why not just use js+canvas or shadertoy?

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.

I like the thumbnail for this one. Looks like an interesting maze

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.

Attached: scribble.webm (256x256, 2.7M)

Friendly thread user, great job.

game of life
random walk
langtons ant
mandelbrot zoom

Nice and saved.

>he actually puts personal info on youtube

No personal info, but I've seen Jow Forums find people with less.

I wanna see it in higher res, looks nice.

what the fuck are they even gonna do?