save grid to custom format
This commit is contained in:
@@ -3,12 +3,12 @@ struct
|
||||
open AppType
|
||||
|
||||
fun updateSquares (squares, newX, newY, item) =
|
||||
let
|
||||
val yAxis = Vector.sub (squares, newX)
|
||||
val yAxis = Vector.update (yAxis, newY, item)
|
||||
in
|
||||
Vector.update (squares, newX, yAxis)
|
||||
end
|
||||
let
|
||||
val yAxis = Vector.sub (squares, newX)
|
||||
val yAxis = Vector.update (yAxis, newY, item)
|
||||
in
|
||||
Vector.update (squares, newX, yAxis)
|
||||
end
|
||||
|
||||
fun changeSquaresSize (squares, newCanvasWidth, newCanvasHeight) =
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user