Shakir's Workshop Wonders - Educational stories

Shakir's Workshop Wonders

कहानी का विवरण

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.

Ratings:Not enough ratings
भाषा:अंग्रेज़ी
प्रकाशन तिथि:
श्रेणी:Educational stories
पढ़ने का समय:1 मिनट

कीवर्ड्स

Generation 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

टिप्पणियाँ

Loading...