How to draw any shape in kivy Widget

19 views
Skip to first unread message

Degenerate Tech

unread,
Apr 17, 2024, 4:09:54 AMApr 17
to Kivy users support
I want to draw background the shape in picture.IMG_20240417_133720.jpg

elli...@cox.net

unread,
Apr 17, 2024, 10:03:14 AMApr 17
to kivy-...@googlegroups.com
I'm not a graphics expert, here are 2 ideas:
 
On the canvas, combine a triangle and a rounded rectangle.  If you want the point on the left to be round as in diagram, you could use a portion of an ellipse or circle to create the rounded point.

Another approach would be to create the shape in a drawing program (Photoshop...) and use it as source image for a Rectangle on the canvas.  If you wanted to add a edge effect (like a 3D look) use a BorderImage.

From: kivy-...@googlegroups.com <kivy-...@googlegroups.com> on behalf of Degenerate Tech <sksah...@gmail.com>
Sent: Wednesday, April 17, 2024 1:09 AM
To: Kivy users support <kivy-...@googlegroups.com>
Subject: [kivy-users] How to draw any shape in kivy Widget
 
I want to draw background the shape in picture.IMG_20240417_133720.jpg

--
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/f61f52b5-2ab6-44fe-a33c-1514e43afe56n%40googlegroups.com.

ElliotG

unread,
Apr 17, 2024, 10:25:36 AMApr 17
to Kivy users support
Reply all
Reply to author
Forward
0 new messages