Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
2b712f0f
Commit
2b712f0f
authored
Sep 06, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commenting out some log statements.
parent
c28965db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
functions.cpp
functions.cpp
+3
-3
No files found.
functions.cpp
View file @
2b712f0f
...
@@ -151,7 +151,7 @@ namespace Sass {
...
@@ -151,7 +151,7 @@ namespace Sass {
// Utility rgb to hsl function so we can do hsl operations
// Utility rgb to hsl function so we can do hsl operations
Node
rgb_to_hsl
(
double
r
,
double
g
,
double
b
,
Node_Factory
&
new_Node
)
{
Node
rgb_to_hsl
(
double
r
,
double
g
,
double
b
,
Node_Factory
&
new_Node
)
{
cerr
<<
"rgb to hsl: "
<<
r
<<
" "
<<
g
<<
" "
<<
b
<<
endl
;
//
cerr << "rgb to hsl: " << r << " " << g << " " << b << endl;
r
/=
255.0
;
g
/=
255.0
;
b
/=
255.0
;
r
/=
255.0
;
g
/=
255.0
;
b
/=
255.0
;
double
max
=
std
::
max
(
r
,
std
::
max
(
g
,
b
));
double
max
=
std
::
max
(
r
,
std
::
max
(
g
,
b
));
...
@@ -336,12 +336,12 @@ namespace Sass {
...
@@ -336,12 +336,12 @@ namespace Sass {
return
new_Node
(
""
,
0
,
new_r
,
new_g
,
new_b
,
new_a
);
return
new_Node
(
""
,
0
,
new_r
,
new_g
,
new_b
,
new_a
);
}
}
else
if
(
!
no_hsl
)
{
else
if
(
!
no_hsl
)
{
cerr
<<
color
.
to_string
()
<<
endl
;
//
cerr << color.to_string() << endl;
Node
hsl_node
(
rgb_to_hsl
(
color
[
0
].
numeric_value
(),
Node
hsl_node
(
rgb_to_hsl
(
color
[
0
].
numeric_value
(),
color
[
1
].
numeric_value
(),
color
[
1
].
numeric_value
(),
color
[
2
].
numeric_value
(),
color
[
2
].
numeric_value
(),
new_Node
));
new_Node
));
cerr
<<
hsl_node
.
to_string
()
<<
endl
;
//
cerr << hsl_node.to_string() << endl;
double
new_h
=
(
h
.
is_false
()
?
hsl_node
[
0
].
numeric_value
()
:
h
.
numeric_value
());
double
new_h
=
(
h
.
is_false
()
?
hsl_node
[
0
].
numeric_value
()
:
h
.
numeric_value
());
double
new_s
=
(
s
.
is_false
()
?
hsl_node
[
1
].
numeric_value
()
:
s
.
numeric_value
());
double
new_s
=
(
s
.
is_false
()
?
hsl_node
[
1
].
numeric_value
()
:
s
.
numeric_value
());
double
new_l
=
(
l
.
is_false
()
?
hsl_node
[
2
].
numeric_value
()
:
l
.
numeric_value
());
double
new_l
=
(
l
.
is_false
()
?
hsl_node
[
2
].
numeric_value
()
:
l
.
numeric_value
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment