amanda.hinchman-dominguez
05/20/2018, 10:00 PMedvin
05/20/2018, 10:00 PMamanda.hinchman-dominguez
05/20/2018, 10:00 PMScreen Shot 2018-05-20 at 6.00.28 PM.png▾
amanda.hinchman-dominguez
05/20/2018, 10:01 PMedvin
05/20/2018, 10:02 PMedvin
05/20/2018, 10:03 PMamanda.hinchman-dominguez
05/20/2018, 10:07 PM$MODULE_DIR$
, so you're not so concerned about the placement of your projectedvin
05/20/2018, 10:13 PMamanda.hinchman-dominguez
05/20/2018, 10:29 PMedvin
05/20/2018, 10:34 PMamanda.hinchman-dominguez
05/21/2018, 4:49 AMprivate fun housePane(position: Pos): StackPane {
val houseNum = (1..6).random()
return stackpane {
rectangle {
fill = c("4E9830")
width = 100.0
height = 100.0
}
imageview("house$houseNum.png").apply {
alignment = position
}
}
}
amanda.hinchman-dominguez
05/21/2018, 4:50 AMfun housePane(position: Pos): StackPane {
val houseNum = (1..6).random()
val rectangle = Rectangle(100.0, 100.0, c("4E9830"))
val image = ImageView("house$houseNum.png")
val stackPane = StackPane(rectangle, image)
stackPane.alignment = rectangle, ???
return StackPane(rectangle, image)
}
mikehearn
05/21/2018, 8:02 AMmikehearn
05/21/2018, 8:02 AMmikehearn
05/21/2018, 8:03 AMedvin
05/21/2018, 8:14 AMedvin
05/21/2018, 8:14 AMedvin
05/21/2018, 8:15 AMedvin
05/21/2018, 8:15 AMedvin
05/21/2018, 10:17 AMamanda.hinchman-dominguez
05/22/2018, 5:03 AMamanda.hinchman-dominguez
05/22/2018, 5:04 AManidotnet
05/22/2018, 8:00 AMbackgroundImage += URI("/close.svg")
backgroundSize += BackgroundSize(16.0, 16.0, false, false, false, false)
backgroundRepeat += Pair(BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT)
backgroundPosition = multi(BackgroundPosition.CENTER)
Is there any way I can set an image and scale smoothly using css?anidotnet
05/22/2018, 8:02 AMimage.png▾
anidotnet
05/22/2018, 8:03 AMmikehearn
05/22/2018, 8:49 AManidotnet
05/22/2018, 9:04 AMmikehearn
05/22/2018, 9:56 AMedvin
05/22/2018, 10:35 AMedvin
05/22/2018, 10:36 AM