<圖形映像,動畫,多媒體> 讀書筆記,圖形映像讀書筆記

來源:互聯網
上載者:User

<圖形映像,動畫,多媒體> 讀書筆記,圖形映像讀書筆記

UIKit力學行為包含了:重力(UIGravityBehavior),碰撞(UICollisionBehavior),吸附(UIAttachmentBehavior),推(UIPushBehavior),甩(UISnapBehavior)和行為限制(UIDynamicItemBehavior).


- (void)viewDidAppear:(BOOL)animated {        [super viewDidAppear:animated];        _animator = [[UIDynamicAnimator alloc] initWithReferenceView:self.view];    //重力行為    _gravity = [[UIGravityBehavior alloc] initWithItems:@[_box]];    [_animator addBehavior:_gravity];    //碰撞行為    _collision = [[UICollisionBehavior alloc]                  initWithItems:@[_box]];        [_collision addBoundaryWithIdentifier:@"barrier" fromPoint:_barrier.frame.origin                                  toPoint:CGPointMake(_barrier.frame.origin.x + _barrier.frame.size.width, _barrier.frame.origin.y)];        _collision.translatesReferenceBoundsIntoBoundary = YES;    _collision.collisionDelegate = self;        [_animator addBehavior:_collision];    UIDynamicItemBehavior* itemBehaviour = [[UIDynamicItemBehavior alloc] initWithItems:@[_box]];    itemBehaviour.elasticity = 0.5;    [_animator addBehavior:itemBehaviour];    }- (void)collisionBehavior:(UICollisionBehavior *)behavior beganContactForItem:(id<UIDynamicItem>)item withBoundaryIdentifier:(id<NSCopying>)identifier atPoint:(CGPoint)p {    if (!_firstContact)    {        _firstContact = YES;        //設定吸附行為        self.attach = [[UIAttachmentBehavior alloc] initWithItem:_attachmentPoint attachedToItem:_box];        [self.animator addBehavior:self.attach];                //設定推行為        UIPushBehavior* push = [[UIPushBehavior alloc] initWithItems:@[_box] mode:UIPushBehaviorModeInstantaneous];        //        [push setAngle:-M_PI/4 magnitude:5.0f]; //右上方45度        CGVector pushDirection = {0.5, -0.5}; //setAngle: magnitude:替代方法        [push setPushDirection:pushDirection];        [push setMagnitude:5.0f];        [_animator addBehavior:push];    }    }


還有一個我個人覺得比較有用,就是甩行為

- (void)viewDidAppear:(BOOL)animated {        [super viewDidAppear:animated];        _animator = [[UIDynamicAnimator alloc] initWithReferenceView:self.view];}- (IBAction)handleSnapGesture:(UITapGestureRecognizer*)gesture{    CGPoint point = [gesture locationInView:self.view];        // 移除甩行為    [_animator removeBehavior:_snap];        _snap = [[UISnapBehavior alloc] initWithItem:_box snapToPoint:point];    [self.animator addBehavior:_snap];}

還有一個就是類似案頭隨手腕角度改變視圖位移的方法

//設定山在X軸的位移範圍-50.0~50.0    UIInterpolatingMotionEffect *mountainEffectX;    mountainEffectX = [[UIInterpolatingMotionEffect alloc] initWithKeyPath:@"center.x"                                                              type:UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis];    mountainEffectX.maximumRelativeValue = @50.0;mountainEffectX.minimumRelativeValue = @-50.0;    [self.mountain addMotionEffect:mountainEffectX];        //設定樹在X軸的位移範圍-100.0~100.0    UIInterpolatingMotionEffect *treeEffectX;    treeEffectX = [[UIInterpolatingMotionEffect alloc] initWithKeyPath:@"center.x"                                                                      type:UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis];    treeEffectX.maximumRelativeValue = @100.0;treeEffectX.minimumRelativeValue = @-100.0;    [self.tree addMotionEffect:treeEffectX];


多媒體資訊具體指文本、聲音、圖形、映像、動畫與視頻,它們屬於( )A表示媒體B感覺媒體C顯示媒體D儲存媒體

A表示媒體
表示媒體(representation Medium),它指傳輸感覺媒體的中介媒體,即用於資料交換的編碼。像編碼(JPEG、MPEG等)、文本編碼(ASCII碼、GB2312等)和聲音編碼等。在電腦中使用不同的格式來表示媒體資訊。
 
電腦多媒體技術,圖形映像製作與動漫設計與製作學哪個好?

我的專業跟你所列的三個很像~但是是偏軟體應用方面的
我個人推薦你
電腦多媒體技術
應為這個技術性是最強的,較比而言。你可以學會更多技術方面的知識,以後走得路當然就越寬,可選擇的餘地也就越廣。
圖形映像製作就能封裝、排版之類的比較相關了,學的知識專業性很強的。但是不會太廣泛。
至於動漫設計與製作,是我自己很喜歡的一個方面,但是基於現狀的話,不推薦你選這個,當然如果你有天賦,又有基礎,而且立志做動漫的話,可以考慮
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.