search for: 00bf40

Displaying 7 results from an estimated 7 matches for "00bf40".

Did you mean: 00b040
2016 Apr 16
0
Mean of hexadecimal numbers
On 16/04/2016 8:47 AM, Atte Tenkanen wrote: > Hi, > > How would you calculate the "mean colour" of several colours, for > example c("#FF7C00","#00BF40","#FFFF00")? > Bert answered your subject line question. Your text is asking something else: if those are colours, you don't want to treat each of them as a single integer. A simple-minded approach would split them into 3 hex numbers, and average those (using Bert's...
2016 Apr 16
5
Mean of hexadecimal numbers
Hi, How would you calculate the "mean colour" of several colours, for example c("#FF7C00","#00BF40","#FFFF00")? Yours, Atte Tenkanen
2016 Apr 16
1
Mean of hexadecimal numbers
Hm..., Should these two versions produce the same solution? Unfortunately and shame to confess, I don't know much about the colors in R: myColors <- c("#FF7C00","#00BF40","#FFFF00") Colors=rgb2hsv(col2rgb(myColors)) apply(Colors,1,mean) h s v 0.2122974 1.0000000 0.9163399 * * * * * # Average the 1st two by taking the middle colour of a 3 colour palette x <- colorRampPalette(c("#FF7C00","#00BF40"), sp...
2016 Apr 16
0
Mean of hexadecimal numbers
...6 12:33 PM, Atte Tenkanen wrote: > Hm..., > > Should these two versions produce the same solution? I wouldn't expect them to. Duncan Murdoch Unfortunately and > shame to confess, I don't know much about the colors in R: > > myColors <- c("#FF7C00","#00BF40","#FFFF00") > Colors=rgb2hsv(col2rgb(myColors)) > apply(Colors,1,mean) > > h s v > 0.2122974 1.0000000 0.9163399 > > * * * * * > > # Average the 1st two by taking the middle colour of a 3 colour palette > x <- colorRampPalett...
2016 Apr 16
2
Mean of hexadecimal numbers
...athed in his "Bloom County" comic strip ) > > > On Sat, Apr 16, 2016 at 5:47 AM, Atte Tenkanen <attenka at utu.fi> wrote: >> Hi, >> >> How would you calculate the "mean colour" of several colours, for example >> c("#FF7C00","#00BF40","#FFFF00")? >> >> Yours, >> >> Atte Tenkanen >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE d...
2016 Apr 16
0
Mean of hexadecimal numbers
...these are color strings, you can use functions in the grDevices package (other others) to manipulate them. E.g., you can convert them to various color spaces and perhaps use the mean in one of those spaces as your 'average color'. > myColors <- c(One="#FF7C00",Two="#00BF40",Three="#FFFF00") > col2rgb(myColors) One Two Three red 255 0 255 green 124 191 255 blue 0 64 0 > rgb2hsv(col2rgb(myColors)) One Two Three h 0.08104575 0.3891798 0.1666667 s 1.00000000 1.0000000 1.0000000 v 1.00000000...
2016 Apr 16
0
Mean of hexadecimal numbers
...ot; -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Apr 16, 2016 at 5:47 AM, Atte Tenkanen <attenka at utu.fi> wrote: > Hi, > > How would you calculate the "mean colour" of several colours, for example > c("#FF7C00","#00BF40","#FFFF00")? > > Yours, > > Atte Tenkanen > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www....