Comments (3)
Actually, Hue should really be from 0 to 360, so the Hue_to_RGB function needs to have the following code.
def Hue_to_RGB(y, z):
return (int(z * Color((y + 120) % 360)), int(z * Color(y % 360)), int(z * Color((y + 240) % 360)))
And Color also needs to be changed to the following:
def Color(x):
return (math.cos((min(max(x, 0), 240) * 1.5) / 180.0 * math.pi) - 1) * -0.5 + 0.0018
from bipes.
Hi,
just committed the new HSL_to_RGB
with a visual feedback to help set up the values.
quick test: https://bipes.net.br/beta2serial/ui/#6mpjxw
I hope it fits you well,
from bipes.
from bipes.
Related Issues (20)
- How are libraries managed and loaded? Why pylibBlobs and pylibs? HOT 4
- Is this project dead? HOT 19
- Self-Hosted(Localhost) HTTPS issues HOT 2
- Generating different code using "https://bipes.net.br/ide/" and offline. HOT 3
- On the RP2040 based boards BIPES is using wrong syntax for timers HOT 15
- Setup BIPES on local server, esp8266.xml & esp32.xml malformed? HOT 1
- Serial connection,On device refresh three times, Files.received_string data error HOT 2
- MQTT Blockly demo on ESP32 device
- Handling of bytes
- Incorrect import of UART HOT 1
- JSON and dictionaries HOT 2
- Incorrect code generated for SPI and I2C init blocks HOT 23
- Blocks for GY33 and TCS3472 HOT 10
- Run Python Code block
- gpio_set function is wrong HOT 1
- Raspberry Pi PICO and ST7789 display HOT 3
- MicroPython > Machine.Pin > Pin.on and Pin.off use incorrect Import sytax HOT 8
- LCD Character Display Code Block Assumes I2C 0x27 Address HOT 7
- Console code does not paste accurately HOT 18
- How to support Chinese transmission HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bipes.