Code Monkey home page Code Monkey logo

practicedraw4's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

practicedraw4's Issues

提示

我能说凯哥越来越懒了吗?现在都不给提示0.0

Camera.rotateX/Y()修正版

Camera.rotateX/Y()修正版
如果图形没有绘制在Canvase中心,
修正后图形也不是对称的(即使我换成了一张正方形的图片)

请问 Canvas.setMatrix() 相比于 Canvas.concat() 会出现什么显示问题 ?

做练习做到 有关矩阵的部分的时候,突然想起朱老师将 Sample 中 Canvas.setMatrix() 改为了 Canvas.concat()

这里我不是很理解 , Canvas.concat() 会对显示造成什么问题?
讲道理,set 不应该比 concat 更好吗- -?
为啥 set 还会出现问题,而 concat 反而可以高枕无忧 ?

下面附上 朱老师的提交 记录

commit 00101aa31b9802e33e01697a133d8036a8a2726d
Author: Kai Zhu <[email protected]>
Date:   Tue Aug 8 11:35:38 2017 +0800

    把 Canvas.setMatrix() 改为 Canvas.concat(),避免有些机型中出现的显示问题。

 .../hencoderpracticedraw4/sample/Sample07MatrixTranslateView.java     | 4 ++--
 .../hencoderpracticedraw4/sample/Sample08MatrixScaleView.java         | 4 ++--
 .../hencoderpracticedraw4/sample/Sample09MatrixRotateView.java        | 4 ++--
 .../hencoder/hencoderpracticedraw4/sample/Sample10MatrixSkewView.java | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

Camera.rotateX/Y()修正版

Camera.rotateX/Y()修正版的效果明显不对呀(虽然代码我没看出毛病)

修正后图形应该是对称的,但是出来的效果明显没有对称呀

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.