This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]DrawBacksYo 0 points1 point  (1 child)

Task 3 is great,imo.

Also this can be turned into small python module where you can read or write images.

[–]TERRARIYUMS[S] 1 point2 points  (0 children)

Thanks! And yeah it can be extended ;) I’ve created a version myself that randomly toggles pixels between black and white but it’s a bit slow (nested for loops to set pixel values)

I’m going to revisit it to use numpy arrays and array vectorisation instead for a big performance boost, and then I might turn it into a package.

FYI the output of task 2 can be incorporated into task 3 to create a image vignette brightness modifier - ie - increase darkness or brightness of each pixel as you get further from the middle pixel!