added dlocate + updated README and TODO list

This commit is contained in:
Tuper 2024-04-16 21:52:34 +01:00
parent 5ae8fd54dc
commit 6fb9af41d0
5 changed files with 39 additions and 14 deletions

9
.pnotes/TODO.md Normal file
View File

@ -0,0 +1,9 @@
TODO:
- make example for "dlocate()".
- add "dmenu()" function
- make dlimage more fancier in some way, idk
- start CG version
- make a colour version for Graph 90+E/CG-50.
DONE:
- "dlimage()", "dlocate()" and "dbar()" (examples are available in the folder)

View File

@ -1,8 +0,0 @@
TODO:
- add "dmenu()" and "dlocate()" functions
- make dlimage more fancier in some way, idk
- start CG version
- make a colour version for Graph 90+E/CG-50.
DONE:
- "dlimage()" and "dbar()" (examples are available in the folder)

View File

@ -53,4 +53,19 @@ def dlimage(x,y,lit,col1):
def dbar(x,y,l,p):
drect_border(x,y,x+l,y+2,C_WHITE,1,C_BLACK)
f = int(p/100*l)
dline(x,y+1,x+f,y+1,C_BLACK)
dline(x,y+1,x+f,y+1,C_BLACK)
def dlocate(x,y,t):
if x==1 and y==1:
dtext(x,y,C_BLACK,t)
elif x==1:
dtext(x,y*8,C_BLACK,t)
elif y==1:
dtext(int(x*5.8),y,C_BLACK,t)
else:
dtext(int(x*5.8),y*8,C_BLACK,t)
if x<1 or x>21:
x=1
if y<1 or y>7:
y=1

View File

@ -2,4 +2,13 @@
Gint++ is a module that uses gint by Lephe'. It can help you for your add-ins or for your python programs (using Python Extra).
#How to use it?
It's fairly simple! just add these lines in the begenning of your code:
[code]from gintpp import * //for python
#include <gintpp.c> // for C/C++[/code]
and you're all good to go!
#What's next?
you can look my next plans in the .pnotes folder and look in the TODO.md file.

View File

@ -1,7 +1,7 @@
from gintpp import * // importing the module
from gintpp import * # importing the module
x = 13 // create the x coordinate variable
y = 47 // create the y coordinate variable
x = 13 # create the x coordinate variable
y = 47 # create the y coordinate variable
img =[
" ###### ",
@ -11,6 +11,6 @@ img =[
"# # # #",
"# ## #",
"# #",
" ###### "] // create the image list
" ###### "] # create the image list
dlimage(x,y,img) // draw the image
dlimage(x,y,img) # draw the image