Plasma Animations Overview (aka. Pimp my Plasmoids!)
Upcoming SlideShare
Loading in...5
×
 

Plasma Animations Overview (aka. Pimp my Plasmoids!)

on

  • 607 views

 

Statistics

Views

Total Views
607
Views on SlideShare
554
Embed Views
53

Actions

Likes
0
Downloads
3
Comments
0

2 Embeds 53

http://www.abinader.com.br 38
http://brunoabinader.com 15

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Plasma Animations Overview (aka. Pimp my Plasmoids!) Plasma Animations Overview (aka. Pimp my Plasmoids!) Presentation Transcript

  • Plasma Animations Overviewaka. Pimp my Plasmoids!Bruno de Oliveira Abinader (abinader)Igor Trindade Oliveira (igorto)July 7th, 2010
  • Who are we?
  • (Nokia Technology Institute)ManausBrasíliaSão PauloRecife
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | PulserRotation | RotationStacked | Slide | Zoom
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomAnimations can be subclassed from:Plasma::AnimationImplements updateCurrentTime(int)Plasma::EasingAnimationImplements updateEffectiveTime(int)
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomTransforms the opacity of an object from a startingvalue to a target valueRanges from 0.0 (transparent) to 1.0 (opaque)Properties:startOpacity – sets the initial opacity valuetargetOpacity – sets the final opacity value
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomUpdates the widget geometry (position, size) froma start QRectF to a target QRectFProperties:startGeometry – sets the initial geometry valuetargetGeometry – sets the final geometry value(target is an adjusted QrectF from start)
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomUpdates the widget geometry (position, size) usinga grow factor (qreal)Properties:factor – grow factor which is a multiple from theinitial values
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomAnimates a faded transition between twoQPixmapsProperties:startPixmap – Initial pixmap displayedtargetPixmap – Target pixmap (animation end)currentPixmap – Current animation pixmap
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomCreates a pulse effect behind the widget, scalingand diminishing opacity until it disappearsProperties:targetScale – Pulse scaling factor (qreal)
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomRotates a widget on a given axis, using a rotationreference with a given angleProperties:axis – Rotation axis(X, Y or Z)reference – Rotation reference(Center, Up, Down, Left, Right)angle – Rotation angle(eg. 0, -90 or 180)
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomFlips one widget (front) with another (back)Properties:movementDirection – Flipping direction(MoveUp, MoveDown, MoveLeft, MoveRight or MoveAny)reference – Rotation reference(Center, Up, Down, Left, Right)layout – Layout where both widgets are insertedbackWidget – Pointer to the back widget
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomMoves a widget to a given direction with a givendistanceProperties:distance – Movement distance in pixelsmovementDirection – Movement direction(MoveUp, MoveDown, MoveLeft, MoveRight or MoveAny)distancePointF – Movement distance as aQpointF
  • Plasma Animations OverviewFade | Geometry | Grow | PixmapTransition | Pulser | Rotation | RotationStacked | Slide | ZoomScales a widget using a given zoom factorProperties:zoom – Scaling factor (qreal)
  • Future of Plasma Animations?JavaScript!
  • JavaScript Animations- Easier to maintain- Implemented on a single file which is unique foreach theme- No significant performance loss when comparingto C++ animations- Development is ongoing!
  • Thank you!Contact:bruno.abinader@openbossa.orgabinader @ irc.freenode.org