-
-
Notifications
You must be signed in to change notification settings - Fork 1
Graphics
S Pradosh edited this page Oct 23, 2022
·
8 revisions
If you want to print a word and goto next line you can use println here is an example
{
println
"Hello%0aWorld!"
}
{
println
{test}
}
{
println
{test.hex}
}
It prints the value in hexadecimal format.
but make sure you import graphics, if not use this
{
importl
graphics
println
"Hello%0aWorld!"
}
If you want to print a word you can use printf here is an example
{
importl
graphics
printf
"Hello%0aWorld!"
}
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 |
- Example
{
colour 0, 2
}
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/)