Repository navigation
Category 2D Drawing Functions
Paul Squires edited this page Oct 19, 2026
·
2 revisions
Home › All Categories › 2D Drawing Functions
Grouped by task. Graphics and windows lists them beside the rest of the area.
| Function | What it does | From |
|---|---|---|
| PSet | Plots one pixel, in the given colour or the current foreground colour. | built-in |
| PReset | Plots one pixel, in the given colour or the current background colour. | built-in |
| Line | Draws a line between two points, or a box or filled box with B or BF. | built-in |
| Circle | Draws a circle, ellipse or arc, optionally filled. | built-in |
| Paint | Fills the area enclosed by a border colour with a colour or a pattern. | built-in |
| Point | Returns the colour of a pixel, or -1 if it is off the screen or image. | built-in |
| Function | What it does | From |
|---|---|---|
| Draw String | Draws text at a pixel position, on a transparent background, with an optional font. | built-in |
| Function | What it does | From |
|---|---|---|
| RGB | Returns an opaque colour value from red, green and blue parts of 0 to 255. | built-in |
| RGBA | Returns a colour value from red, green, blue and alpha parts of 0 to 255. | built-in |
| Palette | Sets or reads the colours of a palette mode, or restores the default palette. | built-in |
| Function | What it does | From |
|---|---|---|
| ImageCreate | Creates an image of a given size filled with one colour; returns 0 on failure. | built-in |
| ImageDestroy | Frees an image made by ImageCreate. | built-in |
| ImageInfo | Fills in an image's width, height, bytes per pixel, pitch and pixel pointer. | built-in |
| ImageConvertRow | Copies a row of pixels to another buffer, converting its colour depth. | built-in |
| Function | What it does | From |
|---|---|---|
| Get | Copies a rectangle of the screen or an image into an image buffer. | built-in |
| Put | Draws an image onto the screen or another image, with a choice of blending method. | built-in |
| Function | What it does | From |
|---|---|---|
| PSet (Put method) | Copies source pixels over the destination unchanged, as a Put method. | built-in |
| Trans | Copies pixels with Put but skips the mask colour, magenta or index 0. | built-in |
| Alpha | Blends pixels with Put by each pixel's alpha, or by one alpha value you give. | built-in |
| Add | Adds source and destination colour values with Put, capped at 255. | built-in |
| And | Combines source and destination pixels with a bitwise And, as a Put method. | built-in |
| Or | Combines source and destination pixels with a bitwise Or, as a Put method. | built-in |
| Xor | Combines source and destination pixels with a bitwise Xor, as a Put method. | built-in |
| Custom | Calls your own function for each pixel to combine source and destination in Put. | built-in |
| Function | What it does | From |
|---|---|---|
| BLoad | Loads a BMP file or BSave data onto the screen or into memory. | built-in |
| BSave | Saves memory or the screen to a file, as a BMP image if the name ends in .bmp. | built-in |
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Home
- What Is tiko-lang
- Quick Start
- Installing on macOS
- Debugging
- Feature Index
- Compatibility
- FAQ
- AI Cheatsheet
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- Partial Types
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Time Zones
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing