|
Last change
on this file since a762898 was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
505 bytes
|
| Line | |
|---|
| 1 | export default function(t) {
|
|---|
| 2 | t = Math.max(0, Math.min(1, t));
|
|---|
| 3 | return "rgb("
|
|---|
| 4 | + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + ", "
|
|---|
| 5 | + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + ", "
|
|---|
| 6 | + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))
|
|---|
| 7 | + ")";
|
|---|
| 8 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.