Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialrichimon richisin
304 PointsHello, I have a problem understanding SASS
Hello guys, I found an example SASS code that I am recreating and I have some problems understanding it.
This is the code @function hueRange($shadow, $hue) { $minHue: call($shadow, minHue); $maxHue: call($shadow, maxHue); @return $hue / 360 * ($maxHue - $minHue) + $minHue; }
I couldnยดt find the meaning of call and I can't understand the reason to request 2 parameters $shadow and $hue in the function and then use them in the call.
Thanks
1 Answer
richimon richisin
304 PointsHello, sure: https://codepen.io/ruberoctavio/pen/RejjVw
Could you explain me too what kind of syntax is this one? (from t he same example):
$endOptions: ( size: 4px, width: 0.75, height: 0.75,
loops: 25, twists: 12,
minHue: 0, maxHue: 180 );
Many thanks
Dave StSomeWhere
19,870 PointsVery cool pen - I don't know the answers to your questions.
The first statement there does an import of "compass" which is another rabbit hole to investigate - also there might be some more info in that persons comments or at least a way to post your questions to the pen's author.
Please update us with anything interesting you find out.
Dave StSomeWhere
19,870 PointsDave StSomeWhere
19,870 PointsCould you please post a link to the example, it will hopefully provide some context.