Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Pixel coloring problem
Started by bus_ter2011 Jun 18 2019 02:10 PM

26 replies to this topic
optimization coloring pixel
[TOPIC CONTROLS]
Page 2 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 976 posts
  • Corona SDK

Wow, you really seem to have a hard time dealing with the fact that people present alternate methods - each with their own benefits and drawbacks.

 

Personally, I think it's best if people have informed options, and then decide for themselves wether or not they need certain functionality or not.



[TOPIC: post.html]
#27

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,108 posts
  • Corona SDK

Another solution would be to use a canvas texture and draw to that.  You can workout which "pixel" was tapped, redraw that area and invalidate the canvas.

 

This way only a single texture is actually being drawn by GPU.  So performance should be very fast.


  • Michael Flad likes this


[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]

Also tagged with one or more of these keywords: optimization, coloring, pixel