10 Apr '14, 10am

@samiullah1989

# File '/Users/jbolton/Projects/sass-site/.sass/lib/sass/script/functions.rb', line 1235 def mix(color1, color2, weight = number(50)) assert_type color1, :Color, :color1 assert_type color2, :Color, :color2 assert_type weight, :Number, :weight Sass::Util.check_range("Weight", 0..100, weight, '%') # This algorithm factors in both the user-provided weight (w) and the # difference between the alpha values of the two colors (a) to decide how # to perform the weighted average of the two RGB values. # # It works by first normalizing both parameters to be within [-1, 1], # where 1 indicates "only use color1", -1 indicates "only use color2", and # all values in between indicated a proportionately weighted average. # # Once we have the normalized variables w and a, we apply the formula # (w + a)/(1 + w*a) to get the combined weight (in [-1, 1]) of color1. # This formula has two espe...

Full article: http://sass-lang.com/documentation/Sass/Script/Functions....

Tweets

@bechilandia es muy similar

sass-lang.com 09 Apr '14, 7pm

You can create partial Sass files that contain little snippets of CSS that you can include in other Sass files. This is a ...

The Raspberry Pi Compute Module

hackaday.com 07 Apr '14, 8pm

Raspberry Pi cluster computers are old hat by now, and much to our dismay, we’ve even seen Raspberry Pis crop up as the br...

Removing Sass Duplication Using Sass Maps

Removing Sass Duplication Using Sass Maps

robots.thoughtbot.com 04 Apr '14, 9pm

Recently Dan asked me to get new icons for Raleigh , New York City , and Austin added to some of our landing pages. Once I...

хм, concerning правильной дорогой идут посоны?

api.rubyonrails.org 09 Apr '14, 9am

Bite-sized separation of concerns We often find ourselves with a medium-sized chunk of behavior that we'd like to extract,...

Trina achieves world record output with p-type ...

solarserver.com 09 Apr '14, 5pm

Trina Solar Ltd. (Changzhou, China) has produced a new 60-cell monocrystalline silicon solar photovoltaic (PV) module with...

Why Falling Module Prices Lead to Lower-tilt Ra...

renewableenergyworld.com 07 Apr '14, 2pm

Racking and Ground Coverage Ratio (GCR) Module racking provides the structural foundation (typically aluminum or steel) th...

Why Falling Module Prices Lead to Lower-tilt Ra...

renewableenergyworld.com 07 Apr '14, 12pm

Racking and Ground Coverage Ratio (GCR) Module racking provides the structural foundation (typically aluminum or steel) th...

TSMC Solar to triple CIGS thin-film PV module c...

digitimes.com 07 Apr '14, 4am

TSMC Solar to triple CIGS thin-film PV module capacity, says paper EDN, April 7; Adam Hwang, DIGITIMES [Monday 7 April 201...

vivus (0.0.4): Styleguides can be a pain to kee...

rubygems.org 07 Apr '14, 12am

Styleguides can be a pain to keep as a living documentation for your CSS. By analysing the comments in your SASS files, an...