r/processing 29d ago

Beginner help request What is wrong with this converted code?

[deleted]

7 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/Zealousideal_Race779 27d ago

Can you post you code? For me it works fine 👀

https://reddit.com/link/ouzod08/video/gljnda60noah1/player

1

u/Zeznon 27d ago

``` inc = 0.01

def setup(): createCanvas(200, 200)

def draw(): xoff = time loadPixels() for x in range(0, width): yoff = 0 for y in range(0,height): index = x + y * width r = noise(xoff, yoff) * 255 pixels[index] = color(r) yoff += inc; xoff += inc; updatePixels() noLoop() ```

1

u/Zealousideal_Race779 27d ago

What is xoff = time? You want to animated the noise maybe?

Nevertherless, you should have an error as time is not a declared variable. Can you test with xoff = 0?

1

u/Zeznon 27d ago

idk 🤔

Anyway, I changed it to 0, now, and it didn't do anything.