Skip to content
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

Closed
wants to merge 1 commit into from
Closed

colors #1

wants to merge 1 commit into from

Conversation

igamigo
Copy link
Collaborator

@igamigo igamigo commented Jun 28, 2018

es para romperte las bolas porque no me psusite de contributor nada mas :>

Copy link
Owner

@franleplant franleplant left a 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+"%)";
Copy link
Owner

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);
Copy link
Owner

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

Copy link
Collaborator Author

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

@franleplant
Copy link
Owner

franleplant commented Jun 28, 2018 via email

@igamigo
Copy link
Collaborator Author

igamigo commented Jun 29, 2018

que raro que es esto del mundo javascript

@franleplant
Copy link
Owner

franleplant commented Jun 29, 2018 via email

@igamigo igamigo closed this by deleting the head repository Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants