Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.34 KB

File metadata and controls

54 lines (38 loc) · 1.34 KB

Numeric Scales

CI

Simple scales for numbers, points and colors. NumericScales is an essential component used by Roassal3.

Installation

Execute the following incantation in a Playground:

Metacello new
	baseline: 'NumericScales';
	repository: 'github://ObjectProfile/NumericScales/src';
	load.

To add NumericScales to your baseline:

spec package: 'NumericScales'with: [ 
	spec repository: 'github://ObjectProfile/NumericScales/src' ].

Quick start

The entry point is NSScale the package NumericScales contains a collection of Scales that you can use to your project, like: linear, log, pow, ordinal and polylinear.

scale := NSScale linear
	domain: { 0. 100};
	range: { 'red'. 'blue' }.
scale scale: 100.
"Color blue"

scale scale: 0.
"Color red"

scale scale: 50.
"Half way between red and blue"

Documentation

You can find more information here

Contact

If you have any questions or problems do not hesitate to open an issue.