Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3956)

Issue 329140043: Standardize format of `in_color` (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 7 months ago by Ebe123
Modified:
6 years, 7 months ago
Reviewers:
dak, Dan Eble
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Standardize format of `in_color` The skyline line-pair (as used in `-ddebug-skylines`) used a 0-255 range for color selection, while other uses use a 0-1 range. The use of the 0-255 range makes weird output, such as "25500.0000%".

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make Real typing more apparent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M lily/axis-group-interface.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/paper-column.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M lily/separation-item.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/system.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lily/tie.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
Ebe123
This is a minor nitpick, just making the format of color commands more consistent. Found ...
6 years, 7 months ago (2017-09-09 17:25:00 UTC) #1
dak
https://codereview.appspot.com/329140043/diff/1/lily/axis-group-interface.cc File lily/axis-group-interface.cc (right): https://codereview.appspot.com/329140043/diff/1/lily/axis-group-interface.cc#newcode991 lily/axis-group-interface.cc:991: .in_color (1, 0, 1)); It's likely mostly a matter ...
6 years, 7 months ago (2017-09-10 10:27:08 UTC) #2
Dan Eble
On 2017/09/10 10:27:08, dak wrote: > It's likely mostly a matter of taste but I'd ...
6 years, 7 months ago (2017-09-10 13:21:21 UTC) #3
Ebe123
Make Real typing more apparent
6 years, 7 months ago (2017-09-14 00:30:53 UTC) #4
Ebe123
6 years, 7 months ago (2017-09-14 00:32:13 UTC) #5
Done. Changed other occurrences too.

https://codereview.appspot.com/329140043/diff/1/lily/axis-group-interface.cc
File lily/axis-group-interface.cc (right):

https://codereview.appspot.com/329140043/diff/1/lily/axis-group-interface.cc#...
lily/axis-group-interface.cc:991: .in_color (1, 0, 1));
On 2017/09/10 10:27:06, dak wrote:
> It's likely mostly a matter of taste but I'd lean towards using 1.0 and 0.0
here
> since the arguments are of type Real and it makes it more obvious we are
indeed
> talking about a fully bright color.  Of course, same with all other
occurences.
> 
> Other than that, LGTM.

Acknowledged.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b