Animate a pendulum: Difference between revisions

m
→‎{{header|Zig}}: update @intToFloat() to @floatFromInt()
(Add Zig solution)
m (→‎{{header|Zig}}: update @intToFloat() to @floatFromInt())
Line 5,581:
while (!c.WindowShouldClose()) // Detect window close button or ESC key
{
const half_width = @intToFloatas(f32, @floatFromInt(c.GetScreenWidth())) / 2;
const pivot = c.Vector2{ .x = half_width, .y = 0 };
 
59

edits