Random color palette generator web app

user profile photouser profile photouser profile photo254 developers have joined this project.

Discussion

Ask questions, discuss different approaches, and share your thoughts about this project.

Anonymous User
Deborah AdamsDeborah Adams

Engaging in video games can indeed contribute to cognitive development in students. Research suggests that certain games enhance problem-solving skills, strategic thinking, and even improve hand-eye coordination. To delve deeper into this fascinating topic, I recommend read full article. It provides valuable insights into the potential educational benefits that well-designed video games can offer to students.

Removed UserRemoved User

Before we dive into the projects themselves diy home projects on a budget, let’s take a moment to consider the benefits of DIY home improvement. First and foremost, it’s an excellent way to save money

Joshua LaiJoshua Lai

in the colormind docs it says

var url = "http://colormind.io/api/";
var data = {
	model : "default",
	input : [[44,43,44],[90,83,82],"N","N","N"]
}

var http = new XMLHttpRequest();

http.onreadystatechange = function() {
	if(http.readyState == 4 && http.status == 200) {
		var palette = JSON.parse(http.responseText).result;
	}
}

http.open("POST", url, true);
http.send(JSON.stringify(data));

// [[42, 41, 48], [90, 83, 84], [191, 157, 175], [188, 138, 125], [215, 170, 66]]
// note that the input colors have changed as well, by a small amount

How do I get the RGB values?

Joshua LaiJoshua Lai

Also, this script results in an error

page at “https://jsfiddle.net/” was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://colormind.io/api'. This request has been blocked; the content must be served over HTTPS.

Do I need to use an HTTP website to test my code?

Interested in this project?

Shorten your learning curve with on-demand programming help

The awesome set of verified mentors will provide guidance and mentoring help when you are stuck.

Suresh Atta

  • Post request free
  • First 15 mins free
Shorten your learning curve with on-demand programming help

Browse more projects

More coming soon...