@@ -113,7 +113,7 @@ def set_color(self, outer_color, inner_color):
113
113
self .vbo .write (self .vertices )
114
114
115
115
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' )
117
117
self .rotation_matrix = rotation
118
118
119
119
def render (self ):
@@ -126,7 +126,7 @@ def lerp_color(color1, color2, t):
126
126
127
127
# Initialize Pygame and ModernGL
128
128
pygame .init ()
129
- screen = pygame .display .set_mode ((0 , 0 ), DOUBLEBUF | OPENGL | FULLSCREEN )
129
+ screen = pygame .display .set_mode ((1080 , 1080 ), DOUBLEBUF | OPENGL )
130
130
ctx = moderngl .create_context ()
131
131
132
132
ctx .enable (moderngl .BLEND )
@@ -165,7 +165,7 @@ def lerp_color(color1, color2, t):
165
165
ctx .clear (1 , 1 , 1 )
166
166
167
167
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 )
169
169
170
170
for i in range (num_cubes ):
171
171
cube = cubes [i ]
0 commit comments