الرسم على الحاسب computer graphics
الواجب 2 رسم مربع باستخدام دالة putpixel
#include<graphics.h>
using namespace std;
int main()
{
initwindow(800,800);
int x1=50, y1=50 , i;
for(i=0; i<100; i++)
{
putpixel(x1,y1,9);
x1+=1;
}
for(i=0; i<100; i++)
{
putpixel(x1,y1,2);
y1+=1;
}
for(i=0; i<100; i++)
{
putpixel(x1,y1,7);
x1-=1;
}
for(i=0; i<100; i++)
{
putpixel(x1,y1,3);
y1-=1;
}
getch();
return 0;
}
using namespace std;
int main()
{
initwindow(800,800);
int x1=50, y1=50 , i;
for(i=0; i<100; i++)
{
putpixel(x1,y1,9);
x1+=1;
}
for(i=0; i<100; i++)
{
putpixel(x1,y1,2);
y1+=1;
}
for(i=0; i<100; i++)
{
putpixel(x1,y1,7);
x1-=1;
}
for(i=0; i<100; i++)
{
putpixel(x1,y1,3);
y1-=1;
}
getch();
return 0;
}
الرسم على الحاسب computer graphics
الواجب ٣ رسم مربعات متداخلة و دائرة متداخلة
الرسم على الحاسب computer graphics
Photo
الرسم على الحاسب computer graphics
رسم مربع باستخدام دالة بت بكسل.docx
والأكواد موجودة بهذا docx
الرسم على الحاسب computer graphics
٣-مبتدأ.
ينرسم بدالة drawpoly
او line
لكن ب drawpoly اسرع 😊✌️
او line
لكن ب drawpoly اسرع 😊✌️
الرسم على الحاسب computer graphics via @like
كم واحد جاي يحل؟؟؟!
ما شاء الله صلوات