Light Source - How to Draw

15 views
Skip to first unread message

Ian Coetzer

unread,
Jan 14, 2020, 6:49:00 AM1/14/20
to Kivy users support
Hi

I am a beginner.
How do I create a light source based on my drawing?

I have a simple 2D Canvas (Widget) on which I draw various ellipses.

How can I setup one of those ellipses to be a light source (such as a sun) to shine some brightness on the 'scene'?

Elliot Garbus

unread,
Jan 14, 2020, 10:07:54 AM1/14/20
to kivy-...@googlegroups.com

If you are just using  2d images, you may want to consider using bitmaps, and an image editor to create the effects you like.

 

A 3D example that uses lighting: https://kivy.org/doc/stable/examples/gen__3Drendering__main__py.html?highlight=monkey

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/224ed240-01f9-4a53-84eb-62a618369a43%40googlegroups.com.

 

VARDAN Mani Tripathi

unread,
Jun 1, 2023, 2:41:48 AM6/1/23
to Kivy users support
hello I am new
Reply all
Reply to author
Forward
0 new messages