Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

shape
Started by jstrahan Aug 07 2013 09:39 PM

8 replies 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

in the shape's file whats

easing

i see it being required but thats it

is it corona adding more easing options, a 3rd party lib., or something else



[TOPIC: post.html]
#2

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 726 posts
  • Alumni

Probably forgot to remove. Yes, we will be adding more easing functions.



[TOPIC: post.html]
#3

jstrahan

[GLOBAL: userInfoPane.html]
jstrahan
  • Corona Geek

  • 1,926 posts
  • Corona SDK

great thx



[TOPIC: post.html]
#4

jstrahan

[GLOBAL: userInfoPane.html]
jstrahan
  • Corona Geek

  • 1,926 posts
  • Corona SDK

are we able to tween the gradient fill

will we be getting a texture fill, perhaps a fourth arg. to image fill so if the image is smaller then the object it will either repeat the image or stretch the image



[TOPIC: post.html]
#5

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 726 posts
  • Alumni

Yes, there are color channel properties for the first and second colors.

 

However there is a bug where, in the version we seeded out, the channels range from 0 to 255.

 

In future versions, the color channels will range from 0 to 1.

 

For the version you have, you would tween like this:

 

local dir = "up"
local bkgd = display.newRoundedRect( 100, 350, halfW, halfW, 20 )
bkgd.fill = { type="gradient", color1={ 1, 0, 0 }, color2={0, 0, 1}, direction=dir }
 
-- Tween first color from red to green. Note use of 255 due to bug.
transition.to( bkgd.fill, { r1=0, g1=255 } )



[TOPIC: post.html]
#6

jstrahan

[GLOBAL: userInfoPane.html]
jstrahan
  • Corona Geek

  • 1,926 posts
  • Corona SDK

just a little something i noticed. you look a little pale in your avatar lol



[TOPIC: post.html]
#7

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 726 posts
  • Alumni

Must be the (lack of a) tan I get from my computer monitor :)



[TOPIC: post.html]
#8

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,069 posts
  • Corona SDK

Move to England; We have a higher voltage, that should boost your monitor's output ;)



[TOPIC: post.html]
#9

jstrahan

[GLOBAL: userInfoPane.html]
jstrahan
  • Corona Geek

  • 1,926 posts
  • Corona SDK


[topic_controls]
[/topic_controls]