jonsterling / constrain

Responsive, animated figures in JavaScript/HTML canvases

Home Page:https://andrewcmyers.github.io/constrain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constrain - a JS (ES6) library for animated, interactive figures, based on declarative constraint solving

Triangle image

Demos

Using constraints to compute the Golden Ratio (Drag the diamond!)

A short talk about Constrain, using Reveal

Cornell University course notes using Constrain for embedded figures: CS 2112, CS 4120/lexer generation, CS 4120/bottom-up parsing

Interactive Pythagorean Theorem

Interactively computing centers of a triangle

TeX-style text formatting

Simple template page for using Constrain

Requirements

  • ES6-capable web browser
    • Tested on Chrome, Opera, Brave, Firefox, Safari (runs best on the first three)
    • Does not work on Internet Explorer or Opera Mini
  • Numeric.js version 1.2.6 (included)

About

Responsive, animated figures in JavaScript/HTML canvases

https://andrewcmyers.github.io/constrain


Languages

Language:JavaScript 96.3%Language:HTML 3.6%Language:CSS 0.1%