Cicero
05/05/2021, 10:26 PMCicero
05/05/2021, 10:48 PMRow (Modifier.offset(x = (pos.x * -5).dp, y = (pos.y * -5).dp)){
repeat(20){
Box(
Modifier
.width(100.dp)
.height(100.dp)
.background(if(it%2 == 1)Color.Blue else Color.Red)
)
}
}
And yes, if you update offset X or Y and you draw something out of bounds it doesn’t repaint the thingCicero
05/05/2021, 10:55 PMCicero
05/05/2021, 10:55 PMCicero
05/05/2021, 10:58 PMCicero
05/05/2021, 11:00 PMCicero
05/05/2021, 11:00 PM