Draw a hat on someone in a picture.
What will be an ideal response?
```
public static Picture drawHatOnBarb ( )
{
Picture p = new Picture (
FileChooser . getMediaPath ( " barbara . jpg " ) ) ;
Graphics g = p.getGraphics ( ) ;
g . setColor (Color.BLACK) ;
// draw the hat
int [ ] xArray = { 31 , 24 , 53 , 39 , 160 , 174 , 193 , 196 } ;
int [ ] yArray = { 112 , 92 , 81 , 26 , 4 , 61 , 60 , 79 } ;
g . f i l l Polygon ( xArray , yArray , 8 ) ;
return p ;
}
```
You might also like to view...
The effects applied to the artwork in the accompanying figure appear on the Effects panel.
Answer the following statement true (T) or false (F)
In a database, a person's name, address, email, or phone is an example of a(n) ________
Fill in the blank(s) with correct word
The overall strategy for WebApp interface testing is to uncover errorsA) in navigation semanticsB) in overall usabilityC) performanceD) related to specific interface mechanisms
What will be an ideal response?
In addition to using Android 6.0’s new permissions model in which the app asks the user to grant permissions dynamically, each app also must specify any permissions it uses in ________.
a. class MainActivity b. strings.xml c. permissions.xml d. AndroidManifest.xml