Results 1 to 10 of 40

Thread: FBGFX module for thinBasic, to handle 2D graphics

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    FBGFX module for thinBasic, to handle 2D graphics

    Hi,

    I started developing FBGFX right away, when Eros gave me the full source to it.
    I've now added few commands to it, and it works nicely.

    Here's an example code what it looks like:

    [code=thinbasic]'**********************
    '** FBGFX Example #1 **
    '**********************

    uses "FBGFX"

    FBGFX_ScreenRes(320,240,32) 'Create FBGFX-window (width, height, dept)

    dim t
    dim x
    dim y
    dim c

    while FBGFX_InKey() <> "q" 'Program runs until "q" is pressed

    x = 160 + sin(c) * 40
    y = 120 + cos(c) * 40
    c = c + .01

    FBGFX_Pset(x,y,FBGFX_RGB(255,255,255)) 'This function draws pixel on the screen
    FBGFX_Circle(x,y,16,FBGFX_RGB(255,50,50)) 'This draws circle ( who would've known ;o )
    FBGFX_Circle(x,y,32,FBGFX_RGB(255,0,255))

    FBGFX_Sync(1) 'Syncronize screen
    FBGFX_Cls() 'And then clear it

    wend[/code]

    Developing this is so wonderful! And if someone takes it away from me, I will die! :<
    Just love making this! ^^
    And I just wanted to make own topic for this, so sorry if it disturbes you.

    FBGFX module is attached in this post.

    Thanks,
    misthema.
    Attached Files Attached Files
    ¯\_†_/¯º¯¹¯²¯³¯\_†_/¯³¯²¯¹¯º¯\_†_/¯

Similar Threads

  1. module to handle 2d plus more
    By Michael Clease in forum Experimental modules or library interface
    Replies: 2
    Last Post: 13-01-2008, 10:56

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •