GIMP/Programowanie/Mathmap: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Linia 137:
filter gray ()
p=abs(x); # x is changing from -1 to 1
rgbColorgrayColor(p,p,p) # color component is proportional to x
end
 
Linia 143:
proporcjonalny do odległości piksela od centrum =( 0,0)
filter gray_radius ()
rgbColorgrayColor(r,r,r) # color component is proportional to radius
end
 
Linia 152:
# polar coordinate of pixel = ra
p=scale(a, -2*pi, 2*pi, -1, 1); # map a from [-2pi,2pi] to [-1,1] range
rgbColorgrayColor(p,p,p) # color component is proportional to angle
end