craiyon logo

A vibrant, glowing mandala in rainbow colors with a central Om symbol and Sanskrit characters, against a sparkling cosmic background.

A vibrant, glowing mandala in rainbow colors with a central Om symbol and Sanskrit characters, against a sparkling cosmic background.

# Installer les bibliothèques nécessaires : # pip install moviepy pillow numpy from moviepy.editor import * from PIL import Image, ImageDraw import numpy as np # Paramètres vidéo width, height = 1080, 1920 # vertical 9:16 duration = 25 # durée en secondes fps = 24 # Texte Sanskrit text = "आत्मेश्वरोऽपि भगवान् सर्वभूतेषु भावितः । न भूतसङ्गोऽस्य हि सर्वसाक्षित्वाद्गुणात्परः ॥" # Fonction pour créer un frame de mandala cinématique def make_frame(t): img = Image.new("RGB", (width, height), (10, 0, 40)) # fond violet profond draw = ImageDraw.Draw(img) center = (width//2, height//2) # Couleurs dynamiques et fluides r = int(128 + 127*np.sin(2*np.pi*t/duration)) g = int(100 + 155*np.sin(2*np.pi*t/duration + np.pi/4)) b = int(150 + 105*np.sin(2*np.pi*t/duration + np.pi/2)) # Mandala complet en rotation continue num_layers = 10 for i in range(1, num_layers + 1): radius = i * 70 + 20*np.sin(2*np.pi*t/duration + i) rotation = 360 * t / duration + i*15 # rotation continue # Motifs lotus fractal for angle in range(0, 360, 15): rad = np.radians(angle + rotation) x = center[0] + radius * np.cos(rad) y = center[1] + radius * np.sin(rad) size = 6 + 4*np.sin(2*np.pi*t/duration + angle) draw.ellipse([(x-size, y-size), (x+size, y+size)], fill=(r, g, b)) # Cercle concentrique draw.ellipse( [(center[0]-radius, center[1]-radius), (center[0]+radius, center[1]+radius)], outline=(r, g, b), width=3 ) # Particules scintillantes animées num_particles = 80 for i in range(num_particles): px = center[0] + See more