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 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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s