1. WinBGIm Wrapper

Hello,

I have finished work on a wrapper for WinBGIm. It works as it should. I've made a simple program. I have not released it yet, however. I will if there is interest. This was mostly done for fun and practice. I have a big wrapper in the works, but that's staying a secret for now.

--Simple program code 
include std/machine.e 
include std/get.e 
 
include EuWinBGI.ew 
 
atom key = 0 
 
initwindow(400,300,"Simple Circle - Press any key to close/Wait 2 seconds",0,0,0,1) 
 
setcolor(CYAN) 
circle(100,50,40) 
 
setcolor(LIGHTBLUE) 
circle(300,100,40) 
 
while not kbhit() do 
	delay(2000) 
end while 

https://ibb.co/4s6X161

new topic     » topic index » view message » categorize

2. Re: WinBGIm Wrapper

Icy_Viking said...

Hello,

I have finished work on a wrapper for WinBGIm. It works as it should. I've made a simple program. I have not released it yet, however. I will if there is interest. This was mostly done for fun and practice. I have a big wrapper in the works, but that's staying a secret for now.

--Simple program code 
include std/machine.e 
include std/get.e 
 
include EuWinBGI.ew 
 
atom key = 0 
 
initwindow(400,300,"Simple Circle - Press any key to close/Wait 2 seconds",0,0,0,1) 
 
setcolor(CYAN) 
circle(100,50,40) 
 
setcolor(LIGHTBLUE) 
circle(300,100,40) 
 
while not kbhit() do 
	delay(2000) 
end while 

https://ibb.co/4s6X161

Why a separate instruction for color?
If properly constructed, the following one line instruction would be very good!
circle(300,100,40,LIGHTBLUE)
Anyway I am intrigued.

new topic     » goto parent     » topic index » view message » categorize

3. Re: WinBGIm Wrapper

Bhupen1277 said...
Icy_Viking said...

Hello,

I have finished work on a wrapper for WinBGIm. It works as it should. I've made a simple program. I have not released it yet, however. I will if there is interest. This was mostly done for fun and practice. I have a big wrapper in the works, but that's staying a secret for now.

--Simple program code 
include std/machine.e 
include std/get.e 
 
include EuWinBGI.ew 
 
atom key = 0 
 
initwindow(400,300,"Simple Circle - Press any key to close/Wait 2 seconds",0,0,0,1) 
 
setcolor(CYAN) 
circle(100,50,40) 
 
setcolor(LIGHTBLUE) 
circle(300,100,40) 
 
while not kbhit() do 
	delay(2000) 
end while 

https://ibb.co/4s6X161

Why a separate instruction for color?
If properly constructed, the following one line instruction would be very good!
circle(300,100,40,LIGHTBLUE)
Anyway I am intrigued.

I don't know why there is a separate instruction for color, its how the library was written. I had to modify the C source code a little to get it to compile into a DLL. Here is the project.

https://github.com/gAndy50/EuWinBGI

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu