Skip to content

Commit

Permalink
A folder for source code; README updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbutno committed Jan 15, 2022
1 parent d49247b commit d218995
Show file tree
Hide file tree
Showing 6 changed files with 1,057 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## Oklab for Processing.

Translated (with added functions) by Yash Gupta to Processing code, from the file ['colorconversion.js' on GitHub](https://github.com/bottosson/bottosson.github.io/blob/master/misc/colorpicker/colorconversion.js) by [Björn Ottosson](https://bottosson.github.io/).

![Oklab for Processing](../master/images/oklab-for-processing-title.png)

Perceptually-accurate and human-friendly color picking using the Oklab color space.

This library includes a small collection of functions to help you pick colors with perceptual accuracy using Björn Ottosson's Oklab color space. This works in contrast to generating colors using RGB or HSB values, in which similar difference in input values don't represent similar difference in color output.

## Download [here.](https://github.com/yashbutno/Oklab-for-Processing/blob/master/download/OklabForProcessing.zip)

### Examples

![Comparison of smooth gradients as generated by Processing's default color functions versus Oklab-for-Processing's color functions.](../master/images/oklab-comparison-gradients.png)

![Comparison of color palettes as generated by Processing's default color functions versus Oklab-for-Processing's color functions.](../master/images/oklab-comparison-palettes.png)

![A purple hue-gradient with constant luminosity, generated by Oklab-for-Processing's Ok.HSL function.](../master/images/oklab-purple-gradient.png)

## How to install Oklab for Processing

### Install with the Contribution Manager
Expand Down Expand Up @@ -35,4 +55,4 @@ Some folders like `examples` or `src` might be missing. After Library Oklab for

### Troubleshooting

If you're having trouble, have a look at the [Processing Wiki](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library) for more information, or contact the author [Yash Gupta](https://refuse.ink/).
If you're having trouble, have a look at the [Processing Wiki](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library) for more information, or contact the author [Yash Gupta](https://github.com/yashbutno).
Binary file added images/oklab-comparison-gradients.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oklab-comparison-palettes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oklab-for-processing-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oklab-purple-gradient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d218995

Please sign in to comment.