Open olyphiri opened 1 year ago
python import matplotlib.pyplot as plt import matplotlib.animation as animation
frames = [ 'coder_black.png', 'coder_white.png', ] # Replace with your own image filenames
cyber_security_text = [ 'Cybersecurity is important to protect sensitive information.', 'Securing computer networks and systems is crucial.', 'Use strong passwords and keep your software up to date.', 'Be cautious of phishing emails and suspicious links.', 'Encrypt your data and use reputable antivirus software.', ] # Add more text lines as needed
fig, ax = plt.subplots()
ax.axis('off') fig.patch.set_facecolor('black')
text = ax.text( 0.5, 0.5, '', fontsize=16, color='white', ha='center', va='center', transform=ax.transAxes )
def update_frame(frame):
img = plt.imread(frames[frame])
ax.imshow(img)
# Set the cybersecurity text for the frame
text.set_text(cyber_security_text[frame])
ani = animation.FuncAnimation( fig, update_frame, frames=len(frames), interval=2000, repeat=True )
plt.show()
https://github.com/olyphiri/olyphiri/assets/120086721/b0380346-e19f-4bd6-b7bd-4869dbe89514