50 shades of grey

  • 4 Replies
  • 11500 Views
50 shades of grey
« on: September 21, 2017, 09:05:23 am »
>>> NUM_SHADES = 50; ["#{0:02x}{0:02x}{0:02x}".format(i * (255 // NUM_SHADES)) for i in range(NUM_SHADES)]
['#000000', '#050505', '#0a0a0a', '#0f0f0f', '#141414', '#191919', '#1e1e1e', '#232323', '#282828', '#2d2d2d', '#323232', '#373737', '#3c3c3c', '#414141', '#464646', '#4b4b4b', '#505050', '#555555', '#5a5a5a', '#5f5f5f', '#646464', '#696969', '#6e6e6e', '#737373', '#787878', '#7d7d7d', '#828282', '#878787', '#8c8c8c', '#919191', '#969696', '#9b9b9b', '#a0a0a0', '#a5a5a5', '#aaaaaa', '#afafaf', '#b4b4b4', '#b9b9b9', '#bebebe', '#c3c3c3', '#c8c8c8', '#cdcdcd', '#d2d2d2', '#d7d7d7', '#dcdcdc', '#e1e1e1', '#e6e6e6', '#ebebeb', '#f0f0f0', '#f5f5f5']

redheron's Avatar

redheron

Re: 50 shades of grey
« Reply #1 on: September 21, 2017, 11:00:41 am »

NICEFISH TIPPED 100 CORAL FOR THIS POST


h's Avatar

h

Re: 50 shades of grey
« Reply #2 on: September 25, 2017, 07:12:07 am »
Code: [Select]
Enumerable.Range(0, NUM_SHADES).Select(n => n * (255 / NUM_SHADES)).Select(n => string.Format("#{0:x2}{0:x2}{0:x2}", n))
or just

Code: [Select]
Enumerable.Range(0, NUM_SHADES).Select(n => string.Format("#{0:x2}{0:x2}{0:x2}", n * (255 / NUM_SHADES)))
dudeweed😂

Re: 50 shades of grey
« Reply #3 on: September 25, 2017, 10:13:28 am »

RACHEL TIPPED 20 CORAL FOR THIS POST

DIABOLIZER TIPPED 99 CORAL FOR THIS POST


Re: 50 shades of grey
« Reply #4 on: September 10, 2019, 01:26:18 am »
>>> NUM_SHADES = 50; ["#{0:02x}{0:02x}{0:02x}".format(i * (255 // NUM_SHADES)) for i in range(NUM_SHADES)]
['#000000', '#050505', '#0a0a0a', '#0f0f0f', '#141414', '#191919', '#1e1e1e', '#232323', '#282828', '#2d2d2d', '#323232', '#373737', '#3c3c3c', '#414141', '#464646', '#4b4b4b', '#505050', '#555555', '#5a5a5a', '#5f5f5f', '#646464', '#696969', '#6e6e6e', '#737373', '#787878', '#7d7d7d', '#828282', '#878787', '#8c8c8c', '#919191', '#969696', '#9b9b9b', '#a0a0a0', '#a5a5a5', '#aaaaaa', '#afafaf', '#b4b4b4', '#b9b9b9', '#bebebe', '#c3c3c3', '#c8c8c8', '#cdcdcd', '#d2d2d2', '#d7d7d7', '#dcdcdc', '#e1e1e1', '#e6e6e6', '#ebebeb', '#f0f0f0', '#f5f5f5']

hawt
aka luke