الرسم على الحاسب computer graphics
302 subscribers
70 photos
17 files
25 links
الرسم على الحاسب باستخدام ++C نشر اكواد العملي واحياناً نظري.
قنواتنا :
@MATLABchann
@JAVA_AVAJ
@VisualBasicAst
@computer_graphicsC
@includecplusplus c++
@computer_graphicsC
Download Telegram
طلاب هذا الفيديو يشرح شلون تستخدم برنامج ال Dev للرسم
ارسل هذي الفولدر لحاسبتك
واتبع الخطوات الموجودة بمقطع الفيديو

طبعاً ست إنتصار تگول تگدرون تستخدمون برنامج الدف
وانتم بكيفكم
طلاب هذا برنامج Dev
طلاب تردون واجبات الرسم لو عدكم
نريدهن 👍
عدنه 😌
الرسم على الحاسب computer graphics pinned «طلاب تردون واجبات الرسم لو عدكم نريدهن 👍 عدنه 😌»
الواجب 1
رسم مربع بواسطة دالة
line
linerel
lineto
#include<graphics.h>
int main()
{
initwindow(800,800);
// Line
line(50,50,150,50);
line(150,50,150,150);
line(150,150,50,150);
line(50,50,50,150);

// lintTo
setcolor(5);
moveto(300,50);
lineto(400,50);
lineto(400,150);
lineto(300,150);
lineto(300,50);

// linerel
setcolor(9);
moveto(430,50);
linerel(100,0);
linerel(0,100);
linerel(-100,0);
linerel(0,-100);


getch();
return 0;
}
الواجب 2
رسم مربع باستخدام دالة putpixel
الرسم على الحاسب 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;
}
الواجب ٣
رسم مربعات متداخلة و دائرة متداخلة
الرسم على الحاسب 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;
}