All pastes #908240 Raw Edit

k4st

public text v1 · immutable
·published 2008-02-18 06:53 UTC
rendered paste body

Given a circle of radius R centred at (X, Y)

for x in [X-R, X+R]:
    for y in [Y-R, Y+R]:
        
        if distance([x,y], [X,Y]) <= R:
            negate pixel
            
    end
end