Python Forum
Python function to get colorwheel RGB values from compass degree?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python function to get colorwheel RGB values from compass degree?
#1
I'm trying to translate compass values (1 - 360) to the RGB values of a color wheel. For example, looking at this image:

https://www.timvandevall.com/wp-content/...ate-02.png

1 degree would be RGB(255,0,0), 180 degrees would be 0,255,255, etc.

Any anyone think of a way to convert each compass degree to an RGB value programatically?
Reply


Messages In This Thread
Python function to get colorwheel RGB values from compass degree? - by wrybread - Sep-05-2017, 06:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding values with reduce() function from the list of tuples kinimod 10 2,729 Jan-24-2023, 08:22 AM
Last Post: perfringo
  function accepts infinite parameters and returns a graph with those values edencthompson 0 878 Jun-10-2022, 03:42 PM
Last Post: edencthompson
  Function - Return multiple values tester_V 10 4,493 Jun-02-2021, 05:34 AM
Last Post: tester_V
  Function parameters and values as string infobound 1 1,782 Jul-24-2020, 04:28 AM
Last Post: scidam
  Function to return list of all the INDEX values of a defined ndarray? pjfarley3 2 1,988 Jul-10-2020, 04:51 AM
Last Post: pjfarley3
  Return values for use outside of function willowman 1 1,693 Apr-13-2020, 07:00 AM
Last Post: buran
  Function with many arguments, with some default values medatib531 3 2,620 Mar-14-2020, 02:39 AM
Last Post: medatib531
  auto supply values to a python script(function) from text file metro17 4 2,562 Oct-26-2019, 01:25 AM
Last Post: ichabod801
  How do I get the tangent of a degree SheeppOSU 3 4,623 Oct-24-2019, 02:13 PM
Last Post: ichabod801
  Custom Function to Return Database Values rm78 0 1,788 Sep-05-2019, 01:01 PM
Last Post: rm78

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020