Code & Results #
In this sections, we’ll present the main and more interesting results of the different snippets we’ve done on the topic of Visual Illusions. Each one of these codes is discussed in detail in the corresponding section of the website.
Snippets #
Each snippet has a unique funcionality, here we’ll present a brief description of each one of them.
Re Coloring #
This is an application that changes the color palette of an image and displays the transformed image. The user can choose between six different color palettes to transform the image.
Palette Generator #
This implementation in p5.js uses an algorithm that extracts the predominant colors from an image and displays a corresponding color palette at the bottom of the image.
Color Tracker #
The code is a web app that uses the device’s camera to capture video and detect colors in real time. Allows the user to adjust color values to find a specific hue and displays information about the name, hexadecimal code and hue of the selected color.