Skip to content

Graphics

S Pradosh edited this page Oct 23, 2022 · 8 revisions

println

If you want to print a word and goto next line you can use println here is an example

{
    println
    "Hello%0aWorld!"
}

casting variables

{
    println
    {test}
}

casting variables with format

{
    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!"
}

sep

printf

If you want to print a word you can use printf here is an example

{
    importl
    graphics

    printf
    "Hello%0aWorld!"
}

sep

colour

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
}

sep

set-cursor-pos

it sets the cursor pos set-cursor-pos <next line> x, y

πŸ‰ Melon Language Wiki

πŸ˜‰ Simple, πŸ’Ύ Low Level, πŸ‘¨β€πŸ’» PPL


Requirements

[External] Git

[External] C# Runtime

Architecture and OS that Melon Supports

Coding & Learning

Getting Into the coding

Variables

Advanced Calculations

Casting and Incrementing

Timers

Compilation

Loops and Goto

Functions

Conditions

File System

User Input

Importing Files and Library

Graphics

Package System

Configuration

Setup OS X for Melon Language

Setup Melon Language for Windows Terminal

Setup Melon Language for VSCode Terminal

Setup Environment CLI for Melon Language on Windows

Other

Downloads History

✨ WOW! You are at the end! now you are a Melon πŸ‰ programmer! Claim your badge!

Melon

Copy Paste: [![Melon](https://nuag9x4nt640.runkit.sh)](https://github.com/pradosh-arduino/Melon-Language/)

Clone this wiki locally