Grafika Komputer: Circle MidPoint Drawing Algorithm

Posted

by

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

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.