Join Shakir, a spirited young North African boy, on an inspiring journey of discovery and creation in his bustling workshop! This heartwarming story celebrates the joy of learning, the thrill of overcoming challenges, and the sweet satisfaction of building something with your own hands, all with the loving support of his family. It's a tale of persistence, creativity, and the magic of making mistakes on the path to mastery.
Shakir stands tall and proud, a hammer ready in his hand. He points confidently towards a stack of wooden planks and various nails on a simple workbench, his eyes sparkling with excitement for the project ahead. He looks determined, ready to bring his creative ideas to life.
With great energy, Shakir saws through a piece of wood. He grips the wood firmly with one hand while the other vigorously moves the saw, creating a rhythmic buzz. His mouth is open, perhaps singing a cheerful tune or letting out a determined grunt as sawdust flies lightly around him.
Oh dear! Shakir reacts with a funny grimace, having just lightly tapped his thumb with the hammer, or perhaps he's struggling to pull out a stubbornly bent nail. The workbench around him shows a bit of a mess, a testament to his earnest efforts and a little mishap. A tiny sweat drop might be forming on his forehead.
Shakir sits on a small stool, looking at the bent nail in his hand with a puzzled, slightly sad expression. His shoulders are slumped just a little, and he seems to be pondering how to overcome this unexpected obstacle. The vibrant workshop feels a bit quieter as he thinks.
Shakir's kind mother kneels beside him, her hand gently resting on his shoulder. She points to a different way to hold the hammer or shows him how to straighten the bent nail, offering a warm smile and words of encouragement. Shakir looks up at her, hope returning to his eyes.
Taking his mother's advice to heart, Shakir tries again, his brow furrowed in concentration. This time, he holds the hammer carefully, making sure his aim is true, or uses a new technique to work with the wood. A small, confident smile starts to form as he feels the rhythm returning.
A triumphant grin spreads across Shakir's face as he successfully hammers a nail perfectly straight into a piece of wood, or perhaps he has finally cut a clean, even line. He looks proudly at his accomplishment, feeling a surge of satisfaction from his hard work and persistence. The workshop seems to hum with his success.
Shakir is now deeply immersed in assembling his project, carefully joining different wooden pieces together. He uses a ruler and pencil to mark measurements, his movements precise and purposeful. The shape of a small, charming birdhouse or a sturdy toy car begins to emerge from the wood.
With a flourish, Shakir holds up his completed wooden creation – a beautifully crafted birdhouse, painted in cheerful colors, or a whimsical toy animal. He beams with pride, showcasing his handiwork. The workshop background, now a bit tidier, highlights his masterpiece.
Shakir and his mother stand side-by-side, admiring the finished project together. His mother has a proud, loving smile, her arm gently around Shakir, who is practically glowing with happiness. The birdhouse sits on a shelf, a symbol of his journey, learning, and success, filling the workshop with warmth.
Generation Prompt(Sign in to view the full prompt)
import random class EducationalStoryVisualizer: def __init__(self): # ========================================== # 1. الثوابت البصرية (لضمان عدم تشوه الشخصيات) # ========================================== self.art_style = ( "High-quality educational book illustration, hand-drawn style by professional artist, " "clear thick black outlines, soft watercolor coloring with ink details. " "Visual perception friendly, simplistic textures, no visual noise. " "Not AI-generated look, authentic artistic touch." ) # وصف الشخصية (شاكر) - طابع تونسي (شمال إفريقي) self.character_shakir = ( "A cute 9-year-old North African boy named Shakir, olive skin tone, " "short dark curly hair, expressive brown eyes. " "He is wearing a distinct Cobalt Blue carpenter apron over a simple white t-shirt " "and beige trousers. A wooden pencil is tucked behind his ear. " "Consistent character appearance across all images." ) # وصف الأم - طابع محلي محافظ وأنيق self.character_mother = ( "A kind North African mother, 35 years old, olive skin, wearing a modest " "long pastel-colored house dress, hair tied back neatly. Warm and encouraging expression." ) # إعدادات البيئة (بسيطة جداً للتركيز على التعلم) self.environment = ( "Simple bright workshop corner, plain walls with minimal Mediterranean tile details at the bottom. " "Uncluttered background, solid pastel colors to prevent distraction." ) # قواعد الإضاءة والتظليل (لخلق العمق دون تعقيد) self.lighting_rules = ( "Soft directional lighting to create volume, gentle shading to give 3D depth to objects. " "Shadows are soft and indicate the shape of objects. " "Colors are vibrant but matte, avoiding over-saturation." ) # معايير الجودة والمنع (Negative Prompts) self.quality_controls = ( "--no text, --no writing, --no speech bubbles, --no frames, --no borders, " "--no blur, --no distortion, --no extra fingers, --no deformed limbs, " "--no complex background, --no dark gloom, --no photorealistic, --no 3d render style." ) def generate_scene_prompt(self, scene_number, action_description, camera_angle, emotion_focus, focal_elements): """ دالة لتوليد أمر التصميم لكل مشهد بناءً على المعطيات """ prompt = f""" /imagine prompt: **SCENE {scene_number} - {self.art_style}** **SUBJECT & ACTION:** {self.character_shakir} {action_description} **KEY ELEMENTS:** {focal_elements}. Objects have clear forms and logical structure. **SETTING:** {self.environment} **CINEMATOGRAPHY:** {camera_angle}. {self.lighting_rules} **MOOD & EMOTION:** {emotion_focus}. Visual cues emphasize the movement and feeling subtly. {self.quality_controls} --ar 16:9 --stylize 250 --v 6.0 """ return prompt.strip() # ========================================== # توليد المشاهد (السيناريو البصري) # ========================================== visualizer = EducationalStoryVisualizer() # المشهد 1: الاستعداد والثقة scene_1 = visualizer.generate_scene_prompt( scene_number=1, action_description="standing proudly, holding a hammer in one hand and pointing to a pile of wood planks and nails of different sizes on a simple workbench.", camera_angle="Low angle shot looking up at Shakir to make him look confident and ready", emotion_focus="Determination, confidence, excitement. Eyes focused on the task.", focal_elements="Wooden planks, hammer, nails, blue apron, pencil behind ear" ) # المشهد 2: العمل والنشاط (حركة المنشار) scene_2 = visualizer.generate_scene_prompt( scene_number=2, action_description="vigorously sawing a piece of wood. One hand holding the wood firmly, the other moving the saw. His mouth is open as if shouting or singing enthusiastically.", camera_angle="Side profile view (Medium Shot) to show the sawing motion clearly. Motion lines subtly drawn to indicate hand movement.", emotion_focus="High energy, hard work, intense focus.", focal_elements="Hand saw, sawdust flying slightly, vibrating wood piece" ) # المشهد 3: الصعوبات (الخطأ والألم) scene_3 = visualizer.generate_scene_prompt( scene_number=3, action_description="reacting to a mistake. He has just hit his thumb lightly with the hammer or is trying to pull out a very crooked bent nail. Messy workbench.", camera_angle="Close-up shot on his face and hands. Focus on the expression and the bent nail.", emotion_focus="Frustration, slight pain, persistence. A small comic-style 'throb' effect near the finger.", focal_elements="Bent nail, hammer, finger, sweat dro