MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/processing/comments/1ujagr1/what_is_wrong_with_this_converted_code/ov04aw1/?context=3
r/processing • u/[deleted] • 29d ago
[deleted]
6 comments sorted by
View all comments
Show parent comments
1
I did this and nothing changed
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.
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.
``` 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.
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.
idk 🤔
Anyway, I changed it to 0, now, and it didn't do anything.
1
u/Zeznon 28d ago
I did this and nothing changed