Skip to content

Graphics

S Pradosh edited this page Sep 4, 2022 · 8 revisions

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

println

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

printf

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

{
    printf
    Hello World!
}

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

here is a example: in Melon CLI type colour then do 0, 2 so basically <foreground_num>, <background_num>

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