Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradients

Generating gradients by letting user choose color and positions. I did this using 2 algorithms, Euclidean and Manhattan.

##Euclidean This is done using euclidean geometry to find the distance between 2 points (a^2+b^2=c^2) Then, we use this to calculate distance from each source color to the current pixel. However, since we need smaller distance -> greater multiplier, we rotate distance around average distance Then to make the distance matter more, we added an exponent picker.

##Manhattan This is done using manhattan distance between 2 points (a+b=c) Then, we use this to calculate distance from each source color to the current pixel. However, since we need smaller distance -> greater multiplier, we rotate distance around average distance Then to make the distance matter more, we added an exponent picker.

About

Generating gradients by letting user choose color and positions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages