Tag: Grafika Komputer
-
Grafika Komputer: Circle MidPoint Drawing Algorithm
Void CircleMidPoint (int Xcenter, int Ycenter, int Radius) { X = 0; Y = Radius; P = 1 – Radius; While (X<Y) { X = X+1; If (P < 0) P = P+ 2*X+1; Else { Y = Y-1; P = P+2*(X-Y)+1; } } CirclePlotPoint(); Hikmah: Hidup itu berputar, dan kondisinya berbeda di tiap kuadran…