Skip to content

formulae-org/package-color-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package-color-js

Color package for the Fōrmulæ programming language.

Fōrmulæ is also a software framework for visualization, edition and manipulation of complex expressions, from many fields. The code for an specific field —i.e. arithmetics— is encapsulated in a single unit called a Fōrmulæ package.

This repository contains the source code for the color package. It contains functionallity to visualize and edit color expressions, and performs operations with colors.

The GitHub organization formulae-org encompasses the source code for the rest of packages, as well as the web application.

Capabilities

  • Visualization

    • Colors, as a small rectangle painted with the specified color. Color supports transparency.
  • Edition

    • Selection of a color interactively
  • Operations with colors

    • Creation of a color given its component of reg, green, blue and opacity
    • Retrieving the components (red, green, blue, opacity) of a given color expression
    • Retrieving the inverse of a given color expression