Grafika Komputer: Circle MidPoint Drawing Algorithm

Grafika Komputer: Circle MidPoint Drawing Algorithm

150 150 Daeng Muhammad Feisal

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 dan oktan nya (tiap fase hidup), kadang minus kadang plus, kadang besar kadang kecil nilainya,
Berbahagialah orang yang selalu berbuat kebaikan,

Circle MidPoint Drawing Algorithm,
Computer Graphics,
October 8th 2014 – at Gedung Ilmu Komputer (GIK) with Vanhas, Diky, and Zainal

See on Path