mamwalter Posted March 28, 2014 Share Posted March 28, 2014 i'm wondering why if i draw a red rectangle with graphic.drawRect(x,y,w,h) for example and then generate a texture from it with graphic.generateTexture() and apply the texture on a simple imagethe texture will have a small offset (~10px padding), i mean the x and y of the image will not be exactly the left top corner of the red rectangle? Link to comment Share on other sites More sharing options...
yvzyldrm Posted July 6, 2014 Share Posted July 6, 2014 I have the same problem Link to comment Share on other sites More sharing options...
jackrugile Posted July 6, 2014 Share Posted July 6, 2014 It looks like lewster32 answered this recently in this thread: http://www.html5gamedevs.com/topic/7620-draw-solid-rectangle/ graphic.boundsPadding = 0; lewster32 1 Link to comment Share on other sites More sharing options...
lewster32 Posted July 6, 2014 Share Posted July 6, 2014 I think with the new docs coming in 2.0.6 some of these 'hidden' pixi inherited values will become less mysterious Link to comment Share on other sites More sharing options...
Billy Williamton Posted March 24, 2015 Share Posted March 24, 2015 This still appears to happen even with that value set to 0 ahead of time. Link to comment Share on other sites More sharing options...
Recommended Posts