Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

2dprototype/tender-free

Tender

Tender is a freeware programming language specially designed for image processing, 2D graphics, scripting, and more!

Overview

Tender is compiled and executed as bytecode on a stack-based VM, which is written in native Golang.

Features

  • Simple and highly readable syntax
  • Can be compiled into bytecode
  • Supports rich built-in modules
  • Specially designed for 2D graphics

Quick Start

  1. Install Tender on your machine.
  2. 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")
  1. Save your code as hello.td (must use .td as the extension).
  2. Run your script using this command:
tender hello.td

Installation

  1. Download this repository.
  2. Run the install.sh script to install Tender on your system.

Windows (Manual Installation)

  1. Download the tender.exe binary based on your machine from the bin/os_arch directory and the pkg directory from pkg.
  2. Copy the tender.exe and pkg 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
  1. Copy the path of the bin folder and add it to your system's environment path.

Documentation

Examples

Explore various examples demonstrating the usage of Tender in different scenarios in the examples directory.

Dependencies

Tender relies on the following dependencies:

Syntax Highlighting

Currently, syntax highlighting is available only for Notepad++.

License

Tender is distributed under the MIT License, with additional licenses provided for third-party dependencies. See LICENSE_GOLANG and LICENSE_TENGO for more information.

Acknowledgments

Tender is written in Go, based on Tengo. We extend our gratitude to the contributors of Tengo for their valuable work.

Message

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.

About

No description, website, or topics provided.

Resources

License

MIT and 4 other licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE_GG
BSD-3-Clause
LICENSE_GOLANG
MIT
LICENSE_TENGO
BSD-3-Clause
LICENSE_WEBSOCKET

Stars

Watchers

Forks

Packages

No packages published