This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
98Games_YT's profile picture

[GRAPHICS] Graphix

Started by 98Games_YT, 04 August 2015 - 06:11 PM
98Games_YT #1
Posted 04 August 2015 - 08:11 PM
Graphix API v2.0


A simple, lightweight and easy to use graphical API with these functions:

Centering (with print, slowPrint and write)

TotalClearing (clears screen and sets cursor POS to 1,1)

Background Setting with ease (setBgColor and totalclear)


Functions to be added:


Fading in and out

Printing/slowPrinting/Writing on the right and left


Download:


Lua file download (for people who don't have Pastebin whitelisted): http://www.mediafire...qem/graphix.lua

Pastebin: pastebin get 1MMwGFe9 your/folders/here/graphix



Have fun!
Edited on 04 August 2015 - 06:12 PM
BowWhalley #2
Posted 09 August 2015 - 06:22 PM
Great API, I really recommend it!
Creator #3
Posted 09 August 2015 - 08:20 PM
Try adding scrennies for the sceptics!
BowWhalley #4
Posted 09 August 2015 - 10:37 PM
Can you add a function for center read, so it automatically centers itself while still acting like a read function?

Also I tried making a bar that was 10 characters long so I printed " " but I got an error as it couldnt get the length of nil
Edited on 10 August 2015 - 03:15 AM
98Games_YT #5
Posted 10 August 2015 - 04:16 PM
Can you add a function for center read, so it automatically centers itself while still acting like a read function?

Also I tried making a bar that was 10 characters long so I printed " " but I got an error as it couldnt get the length of nil

I know. Sometimes that can happen. I don't know why. I shall try to patch the problem.

Great API, I really recommend it!

Thanks for the support and I hope you continue to enjoy my future projects.

Try adding scrennies for the sceptics!

I shall add some screenshots. Thanks for the tip!