How to draw graphics into screen?
How to draw graphics into screen?
Hi, i want to draw graphics into the screen like a simple red 2d cube, can anyone tell me how?
-
- Posts: 3906
- Joined: Jan 01, 2009 7:03
- Location: Australia
Re: How to draw graphics into screen?
.
Last edited by BasicCoder2 on Sep 08, 2022 7:58, edited 1 time in total.
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: How to draw graphics into screen?
Here are all FreeBASIC graphics commands -->: CatPgGfx
Joshy
Joshy
Code: Select all
' graphic screen with 8 bit palette = 256 colors
screenres 640,480,8
' a red diagonal line
line (10,10)-step(100,100),4
' a red [B]ox
line (120,10)-step(100,100),4,B
' a red [B]ox [F]illed
line (240,10)-step(100,100),4,BF
' a red [B]ox [F]illed with white line conture
line (360,10)-step(100,100),15,B
line (361,11)-step( 98, 98),4,BF
sleep
Re: How to draw graphics into screen?
Hey, thank you so much!D.J.Peters wrote: ↑Sep 08, 2022 4:25 Here are all FreeBASIC graphics commands -->: CatPgGfx
JoshyCode: Select all
' graphic screen with 8 bit palette = 256 colors screenres 640,480,8 ' a red diagonal line line (10,10)-step(100,100),4 ' a red [B]ox line (120,10)-step(100,100),4,B ' a red [B]ox [F]illed line (240,10)-step(100,100),4,BF ' a red [B]ox [F]illed with white line conture line (360,10)-step(100,100),15,B line (361,11)-step( 98, 98),4,BF sleep