Grayscale image: Difference between revisions
Content deleted Content added
No edit summary |
Updated D entry |
||
Line 250: | Line 250: | ||
struct Gray { |
struct Gray { |
||
ubyte c; |
ubyte c; |
||
enum black = |
enum black = typeof(this)(0); |
||
enum white = |
enum white = typeof(this)(255); |
||
alias c this; |
alias c this; |
||
} |
} |