A calculator with a syntax close to GLSL
  • C++ 58%
  • C 40.1%
  • Objective-C 1.8%
Find a file
2024-03-06 14:02:48 +01:00
.github/workflows CI: add build and release scripts. 2023-09-10 10:56:12 +02:00
libs Premake: minor fixes. 2023-09-10 10:55:44 +02:00
resources Update README. 2023-05-01 11:28:31 +02:00
src Grapher: fix domain plot. 2024-03-06 14:02:48 +01:00
.gitignore Add details. 2021-12-26 20:59:58 +01:00
LICENSE.md Update license and details. 2022-01-14 22:31:27 +01:00
premake5.lua Premake: minor fixes. 2023-09-10 10:55:44 +02:00
README.md Update README. 2023-05-01 11:33:35 +02:00

Calco

Logo

Calco is a text-based calculator and grapher. It is designed to perform programming-related computations and manipulations on floats, integers, vector and matrices. Its syntax is loosely based on C and shader languages (GLSG, HLSL), and its standard library is tailored for graphics programming.

Screenshot

Features

  • Floats: variables and function definitions, standard functions and constants library
  • Integers: bit shifts and masks, declaration and display in hexadecimal, binary,...
  • Vectors and matrices: up to 4x4, dot and cross products, matrix-vectors operations, both GLSL and HLSL syntaxes are supported
  • Booleans: conditional expressions and ternary operator
  • Graphics-related functions: interpolation, reflection and refraction, transformation matrices, orthographic and perspective projections,...
  • Graphing tool for 1D functions with additional parameters exposed as sliders
  • Complete command history, listing of defined variables and functions
  • On-the-fly evaluation and validation
  • Customizable color schemes

Screenshot

Future improvements

  • Implicit integer to float casting
  • Extended precision
  • Search in functions/variables/built-ins lists
  • 2D domain sampling
  • Random generation

Screenshot