# Advanced Graphics

**URL:** https://forums.solar2d.com/c/solar2d/advanced-graphics/79.md

[Latest](https://forums.solar2d.com/latest.md) · [Categories](https://forums.solar2d.com/categories.md)

---

## [About the Advanced Graphics category](https://forums.solar2d.com/t/about-the-advanced-graphics-category/149037)

<div class="topic-metadata">

**Author:** [@system](https://forums.solar2d.com/u/system)\
**Replies:** 0

</div>

Discussion around working with the Corona graphics engine.

---

## [Graphics 2.0 Public Beta!](https://forums.solar2d.com/t/graphics-2-0-public-beta/149157)

<div class="topic-metadata">

**Author:** [@rob](https://forums.solar2d.com/u/rob)\
**Replies:** 17\
**Last updated:** [October 20, 2013, 5:45pm UTC](https://forums.solar2d.com/t/graphics-2-0-public-beta/149157 "2013-10-20T17:45:32Z")

</div>

The public beta of Graphics 2.0 is now available for Pro and Enterprise subscribers to grab and start playing with. The G2.0 daily builds will be available on a separate download page from the normal daily builds. You …

---

## [Does solar2d support ipad split view?](https://forums.solar2d.com/t/does-solar2d-support-ipad-split-view/357728)

<div class="topic-metadata">

**Author:** [@ishtiak](https://forums.solar2d.com/u/ishtiak)\
**Replies:** 5\
**Last updated:** [March 7, 2026, 4:32pm UTC](https://forums.solar2d.com/t/does-solar2d-support-ipad-split-view/357728 "2026-03-07T16:32:35Z")

</div>

I was trying to make layout for ipad split view / multiple window. The issue is that the contents in the game gets squished. I am using adaptive scaling. Say I have a circle in the center, in the ipad, if I change the wi…

---

## [setPixel alpha parameter issue](https://forums.solar2d.com/t/setpixel-alpha-parameter-issue/356519)

<div class="topic-metadata">

**Author:** [@LourencoA](https://forums.solar2d.com/u/LourencoA)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 8:24pm UTC](https://forums.solar2d.com/t/setpixel-alpha-parameter-issue/356519 "2024-05-07T20:24:17Z")

</div>

Hello, I am using the code snippet example in the memoryBitmap plugin and modified it to check for the alpha parameter in the setPixel function (Setting alpha to 1 and 0.5) I do not see any change in the alpha on the d…

---

## [Get Pixel info](https://forums.solar2d.com/t/get-pixel-info/356518)

<div class="topic-metadata">

**Author:** [@LourencoA](https://forums.solar2d.com/u/LourencoA)\
**Replies:** 5\
**Last updated:** [May 7, 2024, 8:06pm UTC](https://forums.solar2d.com/t/get-pixel-info/356518 "2024-05-07T20:06:45Z")

</div>

Hello, Is there a way to iterate through an image texture and get general info about the pixel (r, g, b and alpha) ?

---

## [Polygon shapes and image fills - fills aren't positioned properly?](https://forums.solar2d.com/t/polygon-shapes-and-image-fills-fills-arent-positioned-properly/356088)

<div class="topic-metadata">

**Author:** [@Glitch\_Games](https://forums.solar2d.com/u/Glitch_Games)\
**Replies:** 0\
**Last updated:** [October 26, 2023, 1:26pm UTC](https://forums.solar2d.com/t/polygon-shapes-and-image-fills-fills-arent-positioned-properly/356088 "2023-10-26T13:26:55Z")

</div>

Working on a little prototype and putting in basic “lighting”. All I’m doing is a bunch of raycasts in a circle to get hit points and building a polygon out of them. Ao far so good, however I then have to reposition th…

---

## [Image Quantisation](https://forums.solar2d.com/t/image-quantisation/356083)

<div class="topic-metadata">

**Author:** [@DRF.MGBV8](https://forums.solar2d.com/u/DRF.MGBV8)\
**Replies:** 9\
**Last updated:** [October 25, 2023, 2:54pm UTC](https://forums.solar2d.com/t/image-quantisation/356083 "2023-10-25T14:54:45Z")

</div>

Hi, I am looking for a compatible image quantiser for solar2d. An algorithm that reduces the number of colours in an image from say 5000 colours to 255 colours. I had a look at impack and I don’t think it has anything i…

---

## [Replace specific color with another color in place in an image](https://forums.solar2d.com/t/replace-specific-color-with-another-color-in-place-in-an-image/343037)

<div class="topic-metadata">

**Author:** [@kevinlboehme](https://forums.solar2d.com/u/kevinlboehme)\
**Replies:** 13\
**Last updated:** [December 12, 2022, 6:23am UTC](https://forums.solar2d.com/t/replace-specific-color-with-another-color-in-place-in-an-image/343037 "2022-12-12T06:23:58Z")

</div>

I have an sprite that contains a specific color I would like to replace with another color in code. What is the best way of doing this in place? Should I use a custom shader? I didnt find anything in the build in effects…

---

## [Dynamic image selection (iphone 4s vs ipad air)](https://forums.solar2d.com/t/dynamic-image-selection-iphone-4s-vs-ipad-air/355046)

<div class="topic-metadata">

**Author:** [@ishtiak](https://forums.solar2d.com/u/ishtiak)\
**Replies:** 1\
**Last updated:** [September 25, 2022, 4:18pm UTC](https://forums.solar2d.com/t/dynamic-image-selection-iphone-4s-vs-ipad-air/355046 "2022-09-25T16:18:31Z")

</div>

Hello, From the corona simulator, here is what I get: iphone 4s: pixel width: 640, scale factor: 2 ipad air: pixel width: 1536, scale factor: 2 I am using “adaptive” content scaling. –print(display.pixelWidth / di…

---

## [Inconsistent value of safeActualContentHeight](https://forums.solar2d.com/t/inconsistent-value-of-safeactualcontentheight/355021)

<div class="topic-metadata">

**Author:** [@ishtiak](https://forums.solar2d.com/u/ishtiak)\
**Replies:** 1\
**Last updated:** [September 18, 2022, 12:47am UTC](https://forums.solar2d.com/t/inconsistent-value-of-safeactualcontentheight/355021 "2022-09-18T00:47:10Z")

</div>

Hello, I am working with “adaptive” scale. I am using Corona Simulator (view as iphone 6). When I do: print(display.safeActualContentHeight) I get different values at different part of the code. First time I print, I …

---

## [Simple Trail : Finally a Corona plugin to render trails](https://forums.solar2d.com/t/simple-trail-finally-a-corona-plugin-to-render-trails/150187)

<div class="topic-metadata">

**Author:** [@david.ciaudo](https://forums.solar2d.com/u/david.ciaudo)\
**Replies:** 15\
**Last updated:** [June 29, 2022, 5:29am UTC](https://forums.solar2d.com/t/simple-trail-finally-a-corona-plugin-to-render-trails/150187 "2022-06-29T05:29:25Z")

</div>

Hi fellow developers, I’ve spent quite some time to develop a plugin that could add a very cool feature in Corona framework. The plugin is called Simple Trail and can be used to attach a trail effect on a display object…

---

## [Solar2D camera + dynamic lightning & split screen](https://forums.solar2d.com/t/solar2d-camera-dynamic-lightning-split-screen/353796)

<div class="topic-metadata">

**Author:** [@basiliogerman](https://forums.solar2d.com/u/basiliogerman)\
**Replies:** 1\
**Last updated:** [August 9, 2021, 9:59pm UTC](https://forums.solar2d.com/t/solar2d-camera-dynamic-lightning-split-screen/353796 "2021-08-09T21:59:26Z")

</div>

Hi everyone, it had been a while since i did anything related to Solar2D since it was renamed, anyway, i wanted to let everyone know that i worked a while ago on a camera system with dynamic lights for Corona and it’s 10…

---

## [TextureResourceCanvas rendering problem](https://forums.solar2d.com/t/textureresourcecanvas-rendering-problem/353274)

<div class="topic-metadata">

**Author:** [@klemen7](https://forums.solar2d.com/u/klemen7)\
**Replies:** 5\
**Last updated:** [July 5, 2021, 9:10am UTC](https://forums.solar2d.com/t/textureresourcecanvas-rendering-problem/353274 "2021-07-05T09:10:34Z")

</div>

Hi guys, I have a problem with rendering TextureResourceCanvas on one of our devices. Texture has a size of 128x128. I create a blue rect and draw it to the texture, then create a rect using that texture. (for test pur…

---

## [Invalid polygon](https://forums.solar2d.com/t/invalid-polygon/353281)

<div class="topic-metadata">

**Author:** [@Yirkash](https://forums.solar2d.com/u/Yirkash)\
**Replies:** 6\
**Last updated:** [March 19, 2021, 3:19pm UTC](https://forums.solar2d.com/t/invalid-polygon/353281 "2021-03-19T15:19:30Z")

</div>

Good afternoon, I’m building some polygons to procedurally draw some stairs, and sometimes I get an invalid polygon message: WARNING: Polygon could not be generated. The polygon outline is invalid, possibly due to hol…

---

## [Transition with gradient](https://forums.solar2d.com/t/transition-with-gradient/353046)

<div class="topic-metadata">

**Author:** [@Yirkash](https://forums.solar2d.com/u/Yirkash)\
**Replies:** 1\
**Last updated:** [January 22, 2021, 2:25pm UTC](https://forums.solar2d.com/t/transition-with-gradient/353046 "2021-01-22T14:25:21Z")

</div>

Hello. I’m trying to transition the colors of a rectangle’s fill gradient. I have no problem with the fill color is just a single color, animating the r, g and b properties of the object’s fill property using transition…

---

## [Screehshot (display.captureScreen) behaiviour](https://forums.solar2d.com/t/screehshot-display-capturescreen-behaiviour/351873)

<div class="topic-metadata">

**Author:** [@Andrey5045](https://forums.solar2d.com/u/Andrey5045)\
**Replies:** 5\
**Last updated:** [July 20, 2020, 3:28pm UTC](https://forums.solar2d.com/t/screehshot-display-capturescreen-behaiviour/351873 "2020-07-20T15:28:32Z")

</div>

Somewhere I read that it is possible to make the whole screen blurry. A blurry background is a good base for a menu. The idea is to make a screenshot, and then apply a filter. Works for me well. Here is a simple code. l…

---

## [How to draw a dashed outline](https://forums.solar2d.com/t/how-to-draw-a-dashed-outline/324098)

<div class="topic-metadata">

**Author:** [@horacebury](https://forums.solar2d.com/u/horacebury)\
**Replies:** 6\
**Last updated:** [March 31, 2014, 7:36am UTC](https://forums.solar2d.com/t/how-to-draw-a-dashed-outline/324098 "2014-03-31T07:36:46Z")

</div>

I’d like to generate a dotted, dashed or otherwise incomplete stroke, but other than using .stroke.effect = “generator.marchingAnts” I just can’t see how to do it. Can anyone tell me if there is an effect for this, plea…

---

## [3 way linear gradient](https://forums.solar2d.com/t/3-way-linear-gradient/351177)

<div class="topic-metadata">

**Author:** [@toxic](https://forums.solar2d.com/u/toxic)\
**Replies:** 4\
**Last updated:** [May 20, 2020, 8:34pm UTC](https://forums.solar2d.com/t/3-way-linear-gradient/351177 "2020-05-20T20:34:56Z")

</div>

how can I fade from black at the top of the square to white at the bottom of the square, but on the same square fade from visible at the right to invisible at the left. can I add 1 fill effect on to an other

---

## [Dynamic lighting camera system](https://forums.solar2d.com/t/dynamic-lighting-camera-system/150109)

<div class="topic-metadata">

**Author:** [@basiliogerman](https://forums.solar2d.com/u/basiliogerman)\
**Replies:** 45\
**Last updated:** [March 22, 2020, 8:57pm UTC](https://forums.solar2d.com/t/dynamic-lighting-camera-system/150109 "2020-03-22T20:57:23Z")

</div>

Some years ago i adventured myself into the universe of the custom shaders in corona and got some dynamic lighting system working with normal maps, but, after some weeks of inactivity (worked on my spare time) i lost the…

---

## [Shadow, blur on objects](https://forums.solar2d.com/t/shadow-blur-on-objects/150917)

<div class="topic-metadata">

**Author:** [@jdsmedeirosbr](https://forums.solar2d.com/u/jdsmedeirosbr)\
**Replies:** 17\
**Last updated:** [January 11, 2020, 1:42pm UTC](https://forums.solar2d.com/t/shadow-blur-on-objects/150917 "2020-01-11T13:42:33Z")

</div>

How can I make this shadow effect on a rectangle? I found nothing related to blur or shadow in Corona objects

---

## [Corona crashes when creating physical body with polygon outline from a display group.](https://forums.solar2d.com/t/corona-crashes-when-creating-physical-body-with-polygon-outline-from-a-display-group/150876)

<div class="topic-metadata">

**Author:** [@victor.aladjov](https://forums.solar2d.com/u/victor.aladjov)\
**Replies:** 1\
**Last updated:** [January 3, 2020, 11:58pm UTC](https://forums.solar2d.com/t/corona-crashes-when-creating-physical-body-with-polygon-outline-from-a-display-group/150876 "2020-01-03T23:58:17Z")

</div>

Hi. I’m having a problem with defining the outline for a physics object in the game I’m developing. I use the graphics.newOutline method to get the coordinates from a specific image. Then I create a group in which I in…

---

## [display.save and saved resolution](https://forums.solar2d.com/t/display-save-and-saved-resolution/150217)

<div class="topic-metadata">

**Author:** [@Studycat2](https://forums.solar2d.com/u/Studycat2)\
**Replies:** 2\
**Last updated:** [October 25, 2019, 4:10am UTC](https://forums.solar2d.com/t/display-save-and-saved-resolution/150217 "2019-10-25T04:10:35Z")

</div>

Hi, I’m trying to figure out how to display.save things to the documents directory with a POT (power of two) resolution. I’m having trouble understanding the relationship between a display object’s height/width, contentH…

---

## [Black lines when capturing/saving sprites from imagesheet](https://forums.solar2d.com/t/black-lines-when-capturing-saving-sprites-from-imagesheet/150214)

<div class="topic-metadata">

**Author:** [@Studycat2](https://forums.solar2d.com/u/Studycat2)\
**Replies:** 7\
**Last updated:** [October 21, 2019, 1:37pm UTC](https://forums.solar2d.com/t/black-lines-when-capturing-saving-sprites-from-imagesheet/150214 "2019-10-21T13:37:35Z")

</div>

I’m making billiards game, and I’m using a filter/shader to make things look like they’re wrapped around a ball, and rotating on it. Here’s what the final, desired effect looks like: https://imgur.com/MX9xbyI The filte…

---

## [Filter alpha is wrong?](https://forums.solar2d.com/t/filter-alpha-is-wrong/150213)

<div class="topic-metadata">

**Author:** [@Studycat2](https://forums.solar2d.com/u/Studycat2)\
**Replies:** 6\
**Last updated:** [October 18, 2019, 5:25am UTC](https://forums.solar2d.com/t/filter-alpha-is-wrong/150213 "2019-10-18T05:25:15Z")

</div>

I’m trying to get the background of an image to be transparent, but I’m encountering some issues, and I can’t figure out what’s wrong with my shader code. Here’s the shader code in action: https://f25j6.app.goo.gl/5evC …

---

## [Is the graphicsCompatibility 1.0 mode still supported in new builds?](https://forums.solar2d.com/t/is-the-graphicscompatibility-1-0-mode-still-supported-in-new-builds/350348)

<div class="topic-metadata">

**Author:** [@d.mach](https://forums.solar2d.com/u/d.mach)\
**Replies:** 2\
**Last updated:** [August 22, 2019, 3:11pm UTC](https://forums.solar2d.com/t/is-the-graphicscompatibility-1-0-mode-still-supported-in-new-builds/350348 "2019-08-22T15:11:41Z")

</div>

Is the usage of graphicsCompatibility 1.0 in the config.lua still allowed and supported?

---

## [Particle Emitter for Explosion?](https://forums.solar2d.com/t/particle-emitter-for-explosion/350251)

<div class="topic-metadata">

**Author:** [@Xorcist](https://forums.solar2d.com/u/Xorcist)\
**Replies:** 10\
**Last updated:** [August 21, 2019, 12:23am UTC](https://forums.solar2d.com/t/particle-emitter-for-explosion/350251 "2019-08-21T00:23:56Z")

</div>

Does anyone have an example of using a particle emitter for an explosion effect? I’m just learning the particle emitter system (completely new to it), but the sample emitters bundled with Corona don’t seem to show how to…

---

## [Forget particle editor struggles!](https://forums.solar2d.com/t/forget-particle-editor-struggles/349752)

<div class="topic-metadata">

**Author:** [@nosoyhackercodigo](https://forums.solar2d.com/u/nosoyhackercodigo)\
**Replies:** 10\
**Last updated:** [May 10, 2019, 10:43am UTC](https://forums.solar2d.com/t/forget-particle-editor-struggles/349752 "2019-05-10T10:43:30Z")

</div>

I just uploaded the easiest way to start making emitters on Windows! The link won’t work after 30 days so download it faster! Download and enjoy :wink:

---

## [Is there a way to capture just a part of the image?](https://forums.solar2d.com/t/is-there-a-way-to-capture-just-a-part-of-the-image/349671)

<div class="topic-metadata">

**Author:** [@nosoyhackercodigo](https://forums.solar2d.com/u/nosoyhackercodigo)\
**Replies:** 8\
**Last updated:** [April 14, 2019, 5:33am UTC](https://forums.solar2d.com/t/is-there-a-way-to-capture-just-a-part-of-the-image/349671 "2019-04-14T05:33:34Z")

</div>

I want to “cut” a part of a display object (or image), and put it into another object’s fill property. Is this even possible to achieve? Give some code examples, please.

---

## [catching tap events from an image in a container](https://forums.solar2d.com/t/catching-tap-events-from-an-image-in-a-container/349033)

<div class="topic-metadata">

**Author:** [@jason\_bullen](https://forums.solar2d.com/u/jason_bullen)\
**Replies:** 2\
**Last updated:** [December 3, 2018, 4:04pm UTC](https://forums.solar2d.com/t/catching-tap-events-from-an-image-in-a-container/349033 "2018-12-03T16:04:46Z")

</div>

I have an image that I insert into a container. Then I add a “tap” listener to the image. Here is my code: \_group = display.newGroup(); \_container = display.newContainer( 800, 400 ) \_container:translate( 0, 0 ); cy…

---

## [Apple Metal - thinking ahead](https://forums.solar2d.com/t/apple-metal-thinking-ahead/348407)

<div class="topic-metadata">

**Author:** [@sporkfin](https://forums.solar2d.com/u/sporkfin)\
**Replies:** 10\
**Last updated:** [November 5, 2018, 7:33pm UTC](https://forums.solar2d.com/t/apple-metal-thinking-ahead/348407 "2018-11-05T19:33:24Z")

</div>

Has anyone started playing around with Apple Metal yet? Have you found any good books on this subject. I’ve found one I’m thinking of getting, “Metal Programming Guide” by Janie Clayton - has anyone read that? It’s a …

[Next page](https://forums.solar2d.com/c/solar2d/advanced-graphics/79.md?page=1)
