-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colors #1
colors #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
como es la cosa? como quedan los colorsitos despues de esto?
sat = 100; | ||
light = (shade?60:70)-((((increase*index)) / 360)*8); | ||
|
||
var color="hsl("+hue+","+sat+"%,"+light+"%)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const, en lugar de var
|
||
hue = ((startHue+(increase*index)) % 360); | ||
sat = 100; | ||
light = (shade?60:70)-((((increase*index)) / 360)*8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
declara cada variable con const en cada linea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
es documentacion semantica, los proximos desarrolladores entienden que esas variables se pueden procesar antes de outputearlas
E no
…On Thu, Jun 28, 2018, 00:45 IgnacioAmigo ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In client/src/App.js
<#1 (comment)>:
> @@ -54,6 +54,20 @@ function transform(cells) {
pointHitRadius: 10
};
+
+ function getColor(index,shade){
+ const startHue= 0;
+ const increase=37;
+ var hue,sat,light;
+
+ hue = ((startHue+(increase*index)) % 360);
+ sat = 100;
+ light = (shade?60:70)-((((increase*index)) / 360)*8);
es documentacion semantica, los proximos desarrolladores entienden que
esas variables se pueden procesar antes de outputearlas
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABxEJ2dgxQT0PF49A9MhqiedGV-aK4t0ks5uBFFEgaJpZM4U6pLd>
.
|
que raro que es esto del mundo javascript |
Indeed, pero si tenes en el corazon langs funcionales entonces todo bien
…On Fri, Jun 29, 2018, 17:28 IgnacioAmigo ***@***.***> wrote:
que raro que es esto del mundo javascript
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABxEJ7PZeR7jPe_FaCMSWQKCc851GJO3ks5uBo3ogaJpZM4U6pLd>
.
|
es para romperte las bolas porque no me psusite de contributor nada mas :>