Two.js • Homepage
文章推薦指數: 80 %
# Two.js ... A two-dimensional drawing api geared towards modern web browsers. It is renderer agnostic enabling the same api to draw in multiple ... #Two.jsAtwo-dimensionaldrawingapigearedtowardsmodernwebbrowsers.Itisrendereragnosticenablingthesameapitodrawinmultiplecontexts:svg,canvas,andwebgl. Github Sponsor #DownloadDownload Development 56KB Production 43KB TIPPriortov0.7.0-alpha.1Two.jsrequiresUnderscore.jsandBackbone.jsEvents.Ifyou'realreadyloadingthesefileselsewherethenyoucanbuildtheprojectyourselfandgetthefilesizeevensmaller.Formoreinformationoncustombuildscheckoutthesourceongithub.Node.jsVersionwithnpm:npminstall--savetwo.js@latest #OverviewOverview#FocusonVectorShapesTwo.jsisdeeplyinspiredbyflatmotiongraphics(opensnewwindow).Asaresult,two.jsaimstomakethecreationandanimationofflatshapeseasierandmoreconcise.#ScenegraphAtitscoretwo.jsreliesonascenegraph(opensnewwindow).Thismeansthatwhenyoudraworcreateanobject(aTwo.PathorTwo.Group),twoactuallystoresandremembersthat.Afteryoumaketheobjectyoucanapplyanynumberofoperationstoit—e.g:rotation,position,scale,etc..#AnimationLoopTwo.jshasabuiltinanimationloop.Itissimpleinnatureandcanbeautomatedorpairedwithanotheranimationlibrary.Formoreinformationcheckouttheexamples.#SVGInterpreterTwo.jsfeaturesaScalableVectorGraphics(opensnewwindow)Interpreter.ThismeansdevelopersanddesignersalikecancreateSVGelementsincommercialapplicationslikeAdobeIllustrator(opensnewwindow)andbringthemintoyourtwo.jsscene.Formoreinformationcheckouttheexamples.#FriendswithBitmapImageryDespiteitsearlyfocusoneasingvectorshapecreationandanimation,Two.jsoffersmanyeasy-to-usefeaturestohandleandrenderbitmapimages.Easilyloadsingleimages,spritesheets,andimagesequenceswithjustafewmethodcalls.#BasicUsageBasicUsageInordertostartanyofthesedemosyou'llwanttodownloadtwo.jsandaddittoyourHTMLdocument.Oncedownloadedaddthistagtothe
ofyourdocument:延伸文章資訊
- 1Two.js • Homepage
# Two.js ... A two-dimensional drawing api geared towards modern web browsers. It is renderer agn...
- 2Two.js Puppy | Coder Projects - GitHub Pages
Two.js has a few helpful methods to draw simple shapes like circles, rectangles, lines, and ellip...
- 3Two.js – 为现代浏览器而生的2D 绘图API
Two.js 是面向现代Web 浏览器的一个二维绘图API。Two.js 可以用于多个场合:SVG,Canvas 和WebGL,旨在使平面形状和动画的创建更方便,更简洁。 Two.js 有一个内...
- 4jonobr1/two.js: A renderer agnostic two-dimensional ... - GitHub
Two.js ... A two-dimensional drawing api meant for modern browsers. It is renderer agnostic enabl...
- 5two.js之實現動畫效果示例 - 程式前沿
一、什麼是two.js? Two.js 是面向現代Web 瀏覽器的一個二維繪圖API。Two.js 可以用於多個場合:SVG,Canvas 和WebGL,旨在使平面形狀和動畫的建立更 ...