mp_sketching
Supreme sketching
cs225::BWPixel Class Reference

Public Member Functions

 BWPixel ()
 Constructs a default BWPixel. More...
 
 BWPixel (double luminance)
 Constructs an opaque BWPixel with the given luminance value. More...
 
bool operator== (BWPixel const &other) const
 
bool operator!= (BWPixel const &other) const
 
bool operator< (BWPixel const &other) const
 

Public Attributes

double l
 Double for the luminance of the pixel, [0, 1]. More...
 

Constructor & Destructor Documentation

◆ BWPixel() [1/2]

cs225::BWPixel::BWPixel ( )

Constructs a default BWPixel.

A default pixel is completely opaque (non-transparent) and white.

◆ BWPixel() [2/2]

cs225::BWPixel::BWPixel ( double  luminance)

Constructs an opaque BWPixel with the given luminance value.

Parameters
luminanceLuminance value for the new pixel, [0, 1].

Member Data Documentation

◆ l

double cs225::BWPixel::l

Double for the luminance of the pixel, [0, 1].


The documentation for this class was generated from the following files: