Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

issue with poly
Started by jstrahan Aug 07 2013 11:05 PM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

jstrahan

[GLOBAL: userInfoPane.html]
jstrahan
  • Corona Geek

  • 1,926 posts
  • Corona SDK

why doesn't this work

 

local vertices = { 0,-110, 27,-35, 105,-35, 43,16, 65,90, 0,45, -65,90, -43,15, -105,-35, -27,-35, }


local x,y = 160,150
local o = display.newPolygon( x, y, vertices )
o:setFillColor( 255, 0, 0 )
o.fill = { type="image", filename="aquariumbackgroundIPhone.jpg" }
o.fill.effect = "filter.brightness"
--o.fill = nil
o.strokeWidth = 10
o:setStrokeColor( 0, 255, 255 )

local x,y = 160,350
local o1 = display.newPolygon( x, y, vertices )
o1:setFillColor( 255, 0, 0 )
o1.fill = { type="image", filename="aquariumbackgroundIPhone.jpg" }
--o.fill = nil
o1.strokeWidth = 10
o1:setStrokeColor( 0, 255, 255 )

Attached File  Screen Shot 2013-08-08 at 1.59.50 AM.png   80.61KB   18 downloads



[TOPIC: post.html]
#2

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 726 posts
  • Alumni

Looks like a bug related to polygons. We'll look into it.




[topic_controls]
[/topic_controls]