Tender is a freeware programming language specially designed for image processing, 2D graphics, scripting, and more!
Tender is compiled and executed as bytecode on a stack-based VM, which is written in native Golang.
- Simple and highly readable syntax
- Can be compiled into bytecode
- Supports rich built-in modules
- Specially designed for 2D graphics
- Install Tender on your machine.
- Copy the sample code below:
// Basic example
str1 := "hello"
str2 := "world"
println(str1 + " " + str2)
// Example of canvas drawing (similar to JS Canvas)
import "canvas"
var ctx = canvas.new_context(100, 100)
ctx.hex("#0f0")
ctx.dash(4, 2)
ctx.rect(25, 25, 50, 50)
ctx.stroke()
ctx.save_png("out.png")
- Save your code as
hello.td
(must use.td
as the extension). - Run your script using this command:
tender hello.td
- Download this repository.
- Run the
install.sh
script to install Tender on your system.
- Download the
tender.exe
binary based on your machine from the bin/os_arch directory and thepkg
directory from pkg. - Copy the
tender.exe
andpkg
directory to your desired location as follows:
├───bin
│ └───tender.exe
└───pkg
│ ansi.td
│ cinf.td
│ console.td
│ enum.td
│ fs.td
│ matrix.td
│ messagebox.td
│ utf8.td
│ vec2.td
│ xml.td
└───helper
- Copy the path of the
bin
folder and add it to your system's environment path.
Explore various examples demonstrating the usage of Tender in different scenarios in the examples directory.
Tender relies on the following dependencies:
Currently, syntax highlighting is available only for Notepad++.
Tender is distributed under the MIT License, with additional licenses provided for third-party dependencies. See LICENSE_GOLANG and LICENSE_TENGO for more information.
Tender is written in Go, based on Tengo. We extend our gratitude to the contributors of Tengo for their valuable work.
Tender was initially planned to be distributed as open-source software. Unfortunately, for some reasons, it has ended up being distributed as freeware. However, we are planning to publish Tender as open-source in the future.