• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Responsive, animated figures in JavaScript/HTML canvases

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

Triangle image

Demos

Interactive Pythagorean Theorem

Interactively computing centers of a triangle

Animated trees

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

TeX-style text formatting

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

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)