Story Card Requirement #1
The requirement reads, “Paint will have a 'fill' tool that will allow the user to fill areas of canvas with a single color.”
S1: The user will select (click) the fill tool from the tool bar.
S2: The user will select a color from the color palette to be used as the fill color.
S3: The user will click anywhere on the canvas containing the current background color.
S4: The program will sample the color underneath the mouse.
S5: The program will replace all pixels of that color on the canvas with the new fill color.
Story Card Requirement #2
The requirement reads, “Paint will have an erase tool that will allow the user to erase areas of the canvas.”
S1: The user will select (click) the eraser tool from the tool bar.
S2: The user will click or click and drag on the canvas where they would like to erase.
S3: The program will access a variable containing the last used fill color and designate it as the current brush color.
S4: The program will employ the same method as the brush tool and replace pixels underneath the pointer with the background color.
No comments:
Post a Comment