<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Core modules have rectangles&#x2F;triangles in the UI designer, Core2 does not]]></title><description><![CDATA[<p dir="auto">I'm trying to migrate an application to the Core2 from Core and I made extensive use of the triangle/rectangle UI things but those don't appear to be supported in Core2. Any idea why or am I missing something?</p>
]]></description><link>https://community.m5stack.com/topic/4662/core-modules-have-rectangles-triangles-in-the-ui-designer-core2-does-not</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 01:29:13 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4662.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Oct 2022 17:10:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core modules have rectangles&#x2F;triangles in the UI designer, Core2 does not on Sun, 16 Oct 2022 19:39:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a> I try to be helpful!</p>
]]></description><link>https://community.m5stack.com/post/18996</link><guid isPermaLink="true">https://community.m5stack.com/post/18996</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 16 Oct 2022 19:39:39 GMT</pubDate></item><item><title><![CDATA[Reply to Core modules have rectangles&#x2F;triangles in the UI designer, Core2 does not on Sat, 15 Oct 2022 16:12:50 GMT]]></title><description><![CDATA[<p dir="auto">Adam,  I did not know Core2 uses LVGL!<br />
You are a Wizard!<br />
-Terry</p>
]]></description><link>https://community.m5stack.com/post/18975</link><guid isPermaLink="true">https://community.m5stack.com/post/18975</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sat, 15 Oct 2022 16:12:50 GMT</pubDate></item><item><title><![CDATA[Reply to Core modules have rectangles&#x2F;triangles in the UI designer, Core2 does not on Sat, 15 Oct 2022 16:01:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks everyone for the suggestions!</p>
]]></description><link>https://community.m5stack.com/post/18974</link><guid isPermaLink="true">https://community.m5stack.com/post/18974</guid><dc:creator><![CDATA[Slartibartfast]]></dc:creator><pubDate>Sat, 15 Oct 2022 16:01:24 GMT</pubDate></item><item><title><![CDATA[Reply to Core modules have rectangles&#x2F;triangles in the UI designer, Core2 does not on Mon, 03 Oct 2022 08:16:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/slartibartfast" aria-label="Profile: Slartibartfast">@<bdi>Slartibartfast</bdi></a></p>
<p dir="auto">not ideal, but you could try the following: while your M5Stack application is loaded in UIFlow, get the rectangles, circles and triangles definitions from the python view. E.g.</p>
<pre><code>rectangle0 = M5Rect(35, 38, 30, 30, 0xFFFFFF, 0xFFFFFF)
circle0 = M5Circle(93, 95, 15, 0xFFFFFF, 0xFFFFFF)
triangle0 = M5Triangle(137, 120, 106, 149, 166, 149, 0xFFFFFF, 0xFFFFFF)
</code></pre>
<p dir="auto">then switch to M5Core2 and add those definitions together with:</p>
<pre><code>from m5ui import *
screen.set_screen_bg_color(0x000000)
</code></pre>
<p dir="auto">into an Execute Code block at the beginning of your M5Core2 application. E.g.</p>
<p dir="auto"><img src="/assets/uploads/files/1664784735939-uiflowshapesinexecuteblock20221003.png" alt="0_1664784734156_UIFlowShapesInExecuteBlock20221003.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If you programmatically changed those shapes you probably need to put those commands into Execute Code blocks as well.</p>
<p dir="auto">I guess one alternative is to stay in the Python view altogether or to use the shapes from the M5Core2 Graphic section.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18783</link><guid isPermaLink="true">https://community.m5stack.com/post/18783</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 03 Oct 2022 08:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to Core modules have rectangles&#x2F;triangles in the UI designer, Core2 does not on Mon, 03 Oct 2022 05:56:46 GMT]]></title><description><![CDATA[<p dir="auto">Core2 uses LVGL Graphics library where as core doesn't. looks like primitive shapes are not available in LVGL in UIFlow.</p>
]]></description><link>https://community.m5stack.com/post/18782</link><guid isPermaLink="true">https://community.m5stack.com/post/18782</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 03 Oct 2022 05:56:46 GMT</pubDate></item></channel></rss>