gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
Texts txtclip1 = TextClip(txt=' '.join(promptsfiltered[partnumber][0].capitalize()),…
- User
Texts
codetxt_clip1 = TextClip(txt=' '.join(prompts_filtered[part_number][0].capitalize()), fontsize=(77 + random.randint(2,4)), font=font, stroke_width=2, stroke_color="black", color="white", kerning=-14) txt_clip1 = txt_clip1.set_start(result1[0].start + tmp_video_length).set_duration((result1[2].start - result1[0].start) + 5).set_pos(pixels_1) videos.append(txt_clip1) txt_clip2 = TextClip( txt=' '.join(prompts_filtered[part_number][1].strip('?.').capitalize()), fontsize=(77 + random.randint(2,4)), font=font, stroke_width=2, stroke_color="black", color="white", kerning=-14 ).set_start(result1[2].start + tmp_video_length).set_duration(5).set_pos(pixels_2) videos.append(txt_clip2)make the some parts of text of the color green
- Assistant
To make some parts of the text green, you need to modify the
TextClipobjects to include multiple text segments with different color styles. Here's how you can do it: