2024-11-27 15:46:58 +13:00
|
|
|
fn cube(length, center) {
|
2025-05-01 11:36:51 -05:00
|
|
|
return length
|
2024-11-18 16:20:32 -06:00
|
|
|
}
|
|
|
|
|
2025-05-01 11:36:51 -05:00
|
|
|
fn double(@x) {
|
2024-11-18 16:20:32 -06:00
|
|
|
return x * 2
|
|
|
|
}
|
2024-11-27 15:46:58 +13:00
|
|
|
fn width() {
|
2024-11-18 16:20:32 -06:00
|
|
|
return 200
|
|
|
|
}
|
|
|
|
|
2025-05-01 11:36:51 -05:00
|
|
|
myCube = cube(length = 200 |> double(%), center = [0, 0])
|