From 2830bd8d69ed18de63c94599d95af0587ec8c227 Mon Sep 17 00:00:00 2001 From: Doxin Date: Sat, 18 Jan 2025 17:20:42 +0100 Subject: [PATCH] Reformat array to be readable --- ashflow.py | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/ashflow.py b/ashflow.py index 8f8e5ca..7ec7a42 100644 --- a/ashflow.py +++ b/ashflow.py @@ -17,30 +17,18 @@ class GameWindow(mglw.WindowConfig): self.texture = self.ctx.texture(self.window_size, 4) buff = self.ctx.buffer( - np.array( - [ - -1.0, - -1.0, - 0.0, - 1.0, - -1.0, - 0.0, - -1.0, - 1.0, - 0.0, - 1.0, - -1.0, - 0.0, - 1.0, - 1.0, - 0.0, - -1.0, - 1.0, - 0.0, - ] - ) - .astype("f4") - .tobytes() + # fmt: off + np.array([ + -1.0, -1.0, 0.0, + 1.0, -1.0, 0.0, + -1.0, 1.0, 0.0, + + 1.0, -1.0, 0.0, + 1.0, 1.0, 0.0, + -1.0, 1.0, 0.0, + ]) + # fmt: on + .astype("f4").tobytes() ) self.vao = self.ctx.vertex_array(self.program, buff, "in_position")