الرسم على الحاسب computer graphics
302 subscribers
70 photos
17 files
25 links
الرسم على الحاسب باستخدام ++C نشر اكواد العملي واحياناً نظري.
قنواتنا :
@MATLABchann
@JAVA_AVAJ
@VisualBasicAst
@computer_graphicsC
@includecplusplus c++
@computer_graphicsC
Download Telegram
الواجب ٣
رسم مربعات متداخلة و دائرة متداخلة
الرسم على الحاسب computer graphics
الواجب ٣ رسم مربعات متداخلة و دائرة متداخلة
#include<graphics.h>
#include<dos.h>
int main()
{
initwindow(800,800);
int i, r=10,x=400,y=200, c=0, x1=100,y1=100,x2=200,y2=200;
for(i=0; i<20; i++)
{
setcolor(c);
circle(x,y,r);
r+=5;
delay(9);
c++;

setcolor(c);
rectangle(x1,y1,x2,y2);
x1+=10;
y1+=10;
x2-=10;
y2-=10;
delay(9);
}
getch();
return 0;
}
الرسم على الحاسب computer graphics
Photo
رسم دائرة صغيرة ثم تكبر
#include<graphics.h>
#include<dos.h>
int main()
{
initwindow(800,800);
int i, r=10,x=400,y=200, c=0, x1=100,y1=100,x2=200,y2=200;
for(i=0; i<20; i++)
{
setcolor(c);
circle(x,y,r);
r+=5;
delay(9);
c++;
}
getch();
return 0;
}
تنتهي المسابقة ليلة السبت
اليريد يشارك بعد ما يحل السؤال يراسلنه على البوت
@touasilbot
الرسم على الحاسب computer graphics
٣-مبتدأ.
ينرسم بدالة drawpoly
او line
لكن ب drawpoly اسرع 😊✌️
كم واحد جاي يحل؟؟؟!