Programming a simple color scheme generator

心不动则不痛 提交于 2019-12-05 01:20:49

问题


we are developing a website cms in C# and want to integrate / develop a small and simple color scheme generator as like as colorschemedesigner.com (of course simplier) to automatically suggest harmonizing template colors (for body background, text, heading etc.).

There are 6 methods for color creation on that website. We would like to reprogram the logic of the "accented analogic" algorithm.

Does anyone know how to easily realize this, or where we could find more information about this topic. How to programatically find a set of harmonizing colors for a given base?

Or are there already some third-party controls out there that could do the job? E.g. an advanced advanced advanced color picker or some thing.

Daniel


回答1:


Adobe's Kuler is pretty good at this. If you want to look at the theory that governs how Kuler creates colour schemes you can look at examples like this on colour theory.

You could begin by creating a colourwheel then using the scheme definitions in this link -- or others -- to work out which colours to choose based on their position on the wheel (e.g. the analogous scheme above).




回答2:


I found this useful in the past. Random Pastel Colour Generator

Code in c# can be found on the page above.



来源:https://stackoverflow.com/questions/4595475/programming-a-simple-color-scheme-generator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!