Class
- Tip&Tech
| [¾Ë°í¸®Áò] 3Â÷¿ø º£Áö¾î °î¼± ¾Ë°í¸®Áò | |||||
| ±Û¾´ÀÌ | ³¯ Â¥ | 12-03-27 11:02 | Á¶ ȸ | 2231 | |
|---|---|---|---|---|---|
| °£ÆíURL |
http://phpschool.com/link/tipntech/75330
|
||||
| Link1 | http://www.cafen.net/product/others.html?type=canvas&init=off&ca=fr&li¡¦ (208) | ||||
![]()
º£ÀÌÁö °î¼±Àº ¿©·¯°³ÀÇ Á¡À¸·Î ºÎÅÍ °î¼±À» À¯µµÇÒ ¼ö ÀÖ½À´Ï´Ù.
Á¦°¡ ÇÊ¿äÇØ¼ ¸¸µç °Çµ¥ °î¼±À» ¸¸µé¾î ³»´Â ¾Ë°í¸®ÁòÀ» ¼³¸í µå¸®°Ú½À´Ï´Ù. cafen.cPoint = function(x,y,z) { this.x = x; this.y = y; this.z = z; } cafen.cPoint.prototype = { x : null, y : null, z : null, getMiddle : function (tPoint, rate) { return this.clone().minus(tPoint).zoom(1-rate).plus(tPoint); }, clone : function() { return new cafen.cPoint(this.x, this.y, this.z); }, plus : function(tPoint) { return this.addx(tPoint.x).addy(tPoint.y).addz(tPoint.z); }, minus : function(tPoint) { return this.addx(tPoint.x *(-1)).addy(tPoint.y *(-1)).addz(tPoint.z *(-1)); }, zoomXyz : function(x,y,z) { if (x != null) this.x *= x; if (y != null) this.y *= y; if (z != null) this.z *= z; return this; }, zoom : function(rate) { return this.zoomXyz(rate, rate,rate); }, addx : function(x) { if (x != null) this.x += x; return this; }, addy : function(y) { if (y != null) this.y += y; return this; }, addz : function(z) { if (z != null) this.z += z; return this; } } function getBezier(percent,points) { var len = points.length; var nPoint = points; while(nPoint.length > 1) { var mPoint = []; for(var i = 0 ; i < nPoint.length -1 ; i++) mPoint.push(nPoint[i].getMiddle(nPoint[i+1], percent)); nPoint = mPoint; } return nPoint[0]; } ÀÌ ¾Ë°í¸®ÁòÀÇ ÇÙ½ÉÀº ¿©·¯°³ÀÇ Á¡À» ¹Þ¾Æ¼ °¢°¢ÀÇ Áß°£ Á¡À» Àâ¾Æ³»¼ ±× Á¡ÀÇ °¹¼ö°¡ 1 µÉ¶§±îÁö ¼öÇàÀ» ÇÕ´Ï´Ù. À¥»ó¿¡¼ ã¾Æº¸´Ï 2Â÷¿ø°ú Á¡ÀÌ 3°³³ª 4°³ÀÎ°Í ¸¸ ¼³¸í µÇ¾î ÀÖ¾î¼ Á¡ÀÇ °¹¼ö¿¡ »ó°ü¾øÀÌ °è»êµÉ ¼ö ÀÖµµ·Ï ¼³°èÇÏ¿´½À´Ï´Ù. ÀÌ ÇÁ·Î±×·¥Àº 3Â÷¿ø °î¼±À» ¸¸µé¾î ³À´Ï´Ù. À§¿¡ ÷ºÎµÈ ±×¸²Àº ÇϳªÀÇ °î¼±Àε¥ º¸´Â ½Ã°¢¿¡ µû¶ó¼ ±×·ÁÁø °î¼±ÀÔ´Ï´Ù. Áï ÁÂÃø ¿ìÃø »ó´Ü ÇÏ´Ü¿¡¼ º¸¿©Áö´Â 3Â÷¿ø °î¼±ÀÔ´Ï´Ù. ÀÚ¼¼ÇÑ ±×¸²Àº ¸µÅ©¸¦ ÂüÁ¶ ¹Ù¶ø´Ï´Ù. ¸µÅ©¿¡¼ Űº¸µåÀÇ È»ìÇ¥À» ¿òÁ÷À̸é ÁÂÇ¥°¡ ¿òÁ÷¿©¼ º¸¿© Áý´Ï´Ù. |
|||||
Àüü´ñ±Û¼ö 8
-


°³³ä»ó½Ç°õ 12-03-27 11:38
¼Ò½ºº¸±â
- ÄÈ 3Â÷ ÁÂÇ¥ º£ÀÌÀú °î¼± ¤¾¤§¤§ Àß ½á¸Ô°Ú½¿¹Ì´Ù ¤» ĵ¹ö½º¾µ¶§ ½á¸ÔÀ¸¸é ÁÁ°Í³×¿©
-


·¹Àο¡µðÅÍ 12-03-27 11:43
¼Ò½ºº¸±â
-
¿¹ Àúµµ 3Â÷¿ø ĵ¹ö½º¸¦ ¸¸µå´À¶ó ¸¸µç °Ì´Ï´Ù. À§ ¸µÅ©¿¡¼ ĵ¹ö½º À§¿¡ ÀÖ´Â top, left ¶ó°í µÇ¾î ÀÖ´Â ºÎºÐÀ» Ŭ¸¯Çϸé ĵ¹ö½º°¡ 3Â÷¿øÀ¸·Î ¿òÁ÷ÀÌ°Ô ¼³°èµÇ¾î ÀÖ½À´Ï´Ù. ¾ÆÁ÷±îÁö´Â ¾îµð¿¡ »ç¿ëÇÒ±î °í¹Î ÁßÀÔ´Ï´Ù. ¼± °³¹ß ÈÄ »ç¿ëó »ý°¢...
°¨»çÇÕ´Ï´Ù. -


·¹Àο¡µðÅÍ 12-03-27 11:45
¼Ò½ºº¸±â
- IE, FireFox, Chrome ¿¡¼ Àß ÀÛµ¿Àº Çϰí Àִµ¥ ÇöÀç clip ºÎºÐ¿¡¼ ¸·Çô ÀÖ´Â »óȲÀÔ´Ï´Ù. Áï 3Â÷¿ø mesh ºÎºÐÀÌ Ã³¸® IE¿¡¼ ¾ÈµÇ´õ±º¿ä. IE9 À̻󿡼´Â µÈ´Ù°í Çϴµ¥.. ±× ÀÌÇÏ ¹öÀü¿¡¼´Â µµÀúÈ÷ ¹æ¹ýÀÌ ¾Èº¸À̰í ÀÖ½À´Ï´Ù.
-


°³³ä»ó½Ç°õ 12-03-27 12:04
¼Ò½ºº¸±â
-
ie8 ±îÁö´Â Æ÷±âÇÏ½Ã¸é ÆíÇØ¿°
ÁÁÀº ÀÚ·á į»þÇԹ̴٠¤£¤£ -


.NETSCHOOL 12-03-28 09:31
¼Ò½ºº¸±â
- IE ¸ðµç ¹öÀü 3D ±×·¡ÇÈ ¾Æ¿¹ Áö¿ø ¾ÈÇÕ´Ï´Ù. ĵ¹ö½º¿Í CSS ¸ðµÎ 2D¸¸ Áö¿øÇÕ´Ï´Ù.
12345678910




