-
-
Notifications
You must be signed in to change notification settings - Fork 1
Graphics
Let's say you need to print a word but you feel convert is slow and not reliable you can use println, printf, colour, set-cursor-pos
If you want to print a word and goto next line you can use println here is an example
{
println
Hello World!
}
but make sure you import graphics, if not use this
{
importl
graphics
println
Hello World!
}
If you want to print a word you can use printf here is an example
{
printf
Hello World!
}
If you want to change the colour of the background or foreground colour use colour here is a chart of all colour numbers
colour | code |
---|---|
Black | 0 |
Blue | 9 |
Cyan | 11 |
DarkBlue | 1 |
DarkCyan | 3 |
DarkGray | 8 |
DarkGreen | 2 |
DarkMagenta | 5 |
DarkRed | 4 |
DarkYellow | 6 |
Gray | 7 |
Green | 10 |
Magenta | 13 |
Red | 12 |
White | 15 |
Yellow | 14 |
here is a example:
in Melon CLI type colour
then do 0, 2
so basically <foreground_num>, <background_num>
it sets the cursor pos
set-cursor-pos <next line> x, y
Copyright (C) S Pradosh 2023 - Closed Source Project
Architecture and OS that Melon Supports
Setup Melon Language for Windows Terminal
Setup Melon Language for VSCode Terminal
Setup Environment CLI for Melon Language on Windows
Copy Paste: [](https://github.com/pradosh-arduino/Melon-Language/)