Code Sketch


Menubar-Semple
By: Nitin Mishra
val p1 = Picture.rect(30, 60).withFillColor(Color(0, 153, 255)).withPenColor(Color(0, 153, 255))

val home = Picture.text("Home", Font("Droid Sans Mono Slashed", 20))
val file = Picture.text("File", Font("Droid Sans Mono Slashed", 20))
val edit = Picture.text("Edit", Font("Droid Sans Mono Slashed", 20))
val view = Picture.text("View", Font("Droid Sans Mono Slashed", 20))
val hg = Picture.hgap(5)
val menu = picRow(
    picStackCentered(p1, home),hg,
    picStackCentered(p1, file),hg,
    picStackCentered(p1, edit),hg,
    picStackCentered(p1, view),
).withPenColor(white)

cleari
draw(menu)