Graphics https://code.coronalabs.com/taxonomy/term/20/all en simple_toast https://code.coronalabs.com/code/simpletoast <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Simple example for Toast Notification without any plugins for Corona SDK.</p> <p>For all supported platforms!</p> <p>How to use?</p> <p>• Add toast.lua in your Corona project root directory</p> <p>• Add string 'require "toast"' in main.lua</p> <p>• For display a toast notification, use next code:</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">krdpnsk</div></div></div> Thu, 14 Nov 2019 07:18:03 +0000 krdpnsk 207 at https://code.coronalabs.com layout.lua - Device independent layout manager https://code.coronalabs.com/code/layoutlua-device-independent-layout-manager <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>The layout manager makes it easy to create <em>regions</em>, rectangular areas defined relative to the screen, the stage (which may or may not be the full screen), and to the previously created user-defined regions. The final regions are created with content coordinates.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Ron</div></div></div> Wed, 22 Jun 2016 22:26:47 +0000 ron5 200 at https://code.coronalabs.com Point - A 2D Math Library. Simplifies vector math. https://code.coronalabs.com/code/point-2d-math-library-simplifies-vector-math <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>2d Math Library for Corona SDK / Lua</p> <p>Point is a 2d math library for Corona SDK or just plain ol' lua. It allows us to think of positions within corona as single units (points) vs independent x and y coordinates. You can run methods directly on those points.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Tameem Hamoui</div></div></div> Wed, 18 May 2016 05:33:43 +0000 tameem50 198 at https://code.coronalabs.com Display Object Color Transition https://code.coronalabs.com/code/display-object-color-transition <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>transition.to doesn't seem to support color transitions. So I made one myself using enterFrame, which is how I suspect corona's transition library works too.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">danielr0</div></div></div> Thu, 28 Apr 2016 04:18:51 +0000 danielr0 196 at https://code.coronalabs.com Corona SDK Color Converter https://code.coronalabs.com/code/corona-sdk-color-converter <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Converts your hex (html-format) or RGB values into Corona-compatible format (numbers from 0 to 1). No difficulties, only two functions: <code>hex('value')</code> and <code>rgb(rNum, gNum, bNum)</code>.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">SpyceR</div></div></div> Sat, 16 Jan 2016 00:18:01 +0000 Spycer 194 at https://code.coronalabs.com Circle or ring segment library function. https://code.coronalabs.com/code/circle-or-ring-segment-library-function <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Create a filled or unfilled circle or ring and move the output polygon by the circle centre not the polygon centre.</p> <p>Requires the mathlib library: <a href="https://code.coronalabs.com/code/mathliblua">https://code.coronalabs.com/code/mathliblua</a></p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">HoraceBury</div></div></div> Sun, 01 Nov 2015 09:08:55 +0000 horacebury 190 at https://code.coronalabs.com Outlined Text via Snapshots https://code.coronalabs.com/code/outlined-text-snapshots <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Uses snapshots and text objects to make outlined text in the Corona SDK. Good performance since the outlines are only drawn when the text changes...</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">ponywolf</div></div></div> Mon, 10 Aug 2015 19:17:17 +0000 ponywolf 185 at https://code.coronalabs.com Fibonacci clock https://code.coronalabs.com/code/fibonacci-clock <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Graphical representation utilizing the Fibonacci sequence to tell the time.<br /> Clock video demo :<br /> <a href="https://youtu.be/bi-uZVHnfbI">https://youtu.be/bi-uZVHnfbI</a></p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">shayde</div></div></div> Fri, 31 Jul 2015 00:02:13 +0000 shaydebarra 184 at https://code.coronalabs.com Pinch zoom scroll touch https://code.coronalabs.com/code/pinch-zoom-scroll-touch <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Simple code that allows multitouch and single touch on an image.<br /> In my project I added lots of assets on top of the image and put them all in a container. This allowed me move a chart (map) and overlay marks and routes and have them all zoom, pinch and scroll.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Conor O&#039;Nolan</div></div></div> Wed, 17 Jun 2015 07:00:09 +0000 conor1 183 at https://code.coronalabs.com Color Transition Matrix https://code.coronalabs.com/code/color-transition-matrix <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This function returns a matrix of RGB values that allow you to gradually change from one color to another using a single index, like the position of a scrollview/springboard.</p> <p>It takes a two dimensional array of RGB colors, each page width and the total amount of pages.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Tanner Gower</div></div></div> Fri, 15 May 2015 03:23:28 +0000 triggdev 181 at https://code.coronalabs.com Sliced Images https://code.coronalabs.com/code/sliced-images <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Have you ever wondered how to create 9-sliced images using Corona? Corona only provides a few possibilities to do it, but it requires 9 previously sliced images to mount it at runtime, but now you can do it using just one image!</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">PhoerLevine</div></div></div> Fri, 01 May 2015 20:44:40 +0000 PhoerLevine 180 at https://code.coronalabs.com Create a drop shadow https://code.coronalabs.com/code/create-drop-shadow <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Create a drop shadow without the use of snapshot without the use of snapshot.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">HoraceBury</div></div></div> Mon, 27 Apr 2015 05:34:31 +0000 horacebury 179 at https://code.coronalabs.com Auto slideshow from folder https://code.coronalabs.com/code/auto-slideshow-folder <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>@@ Currently working on Corona Simulator, XCode Simulator and IOS build This is a module I initially made because I often end up making an intro with images, explaining how to play.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Hendrix000007</div></div></div> Thu, 23 Apr 2015 22:23:11 +0000 Hendrix000007 177 at https://code.coronalabs.com Fill a Vertical Progress Indicator https://code.coronalabs.com/code/fill-vertical-progress-indicator <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>If you want to place a vertical progress indicator in your code here is how to do it!</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Arthur A. Roberts</div></div></div> Thu, 16 Apr 2015 11:47:33 +0000 aaroberts 175 at https://code.coronalabs.com Corona Textrender https://code.coronalabs.com/code/corona-textrender <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>A pure-Lua text rendering module for Corona SDK which can handle basic HTML, fonts, font-styles, and even basic font metrics.</p> <p>This module renders text close to a proper desktop publishing program like Adobe InDesign. That means I can position text correctly on screen for books, etc.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">David Gross</div></div></div> Thu, 09 Apr 2015 22:38:38 +0000 mimetic 173 at https://code.coronalabs.com