@@ -113,7 +113,7 @@ def set_color(self, outer_color, inner_color):
113113 self .vbo .write (self .vertices )
114114
115115 def update_rotation (self , angle ):
116- rotation = Matrix44 .from_eulers ((angle , angle , 0 ), dtype = 'f4' )
116+ rotation = Matrix44 .from_eulers ((angle , angle , angle ), dtype = 'f4' )
117117 self .rotation_matrix = rotation
118118
119119 def render (self ):
@@ -126,7 +126,7 @@ def lerp_color(color1, color2, t):
126126
127127# Initialize Pygame and ModernGL
128128pygame .init ()
129- screen = pygame .display .set_mode ((0 , 0 ), DOUBLEBUF | OPENGL | FULLSCREEN )
129+ screen = pygame .display .set_mode ((1080 , 1080 ), DOUBLEBUF | OPENGL )
130130ctx = moderngl .create_context ()
131131
132132ctx .enable (moderngl .BLEND )
@@ -165,7 +165,7 @@ def lerp_color(color1, color2, t):
165165 ctx .clear (1 , 1 , 1 )
166166
167167 outer_color = (* outer .generate_color_from_perlin_noise (value = now_time / 7 , format = pmma .Constants .SMALL_RGB ), 0.5 )
168- inner_color = (* inner .generate_color_from_perlin_noise (value = now_time / 10 , format = pmma .Constants .SMALL_RGB ), 0.5 )
168+ inner_color = (* inner .generate_color_from_perlin_noise (value = - now_time / 7 , format = pmma .Constants .SMALL_RGB )/ 2 , 0.5 )
169169
170170 for i in range (num_cubes ):
171171 cube = cubes [i ]
0 commit comments