Supercharged JavaScript Graphics


Book Description

With HTML5 and improved web browser support, JavaScript has become the tool of choice for creating high-performance web graphics. This faced-paced book shows you how to use JavaScript, jQuery, DHTML, and HTML5's Canvas element to create rich web applications for computers and mobile devices. By following real-world examples, experienced web developers learn fun and useful approaches to arcade games, DHTML effects, business dashboards, and other applications. This book serves complex subjects in easily digestible pieces, and each topic acts as a foundation for the next. Tackle JavaScript optimization and understand how it impacts performance Create fast-moving graphics by combining old-school DHTML with jQuery Learn advanced UI techniques using the jQuery UI and Ext JS libraries Build games with collision detection, object handling, and JavaScript scrolling techniques Master HTML5 Canvas basics for drawings, fills, bitmaps, animation, and more Create applications for the small screen with jQuery Mobile and PhoneGap Use Google’s data visualization tools to create interactive dashboards




WebGL: Up and Running


Book Description

Get a quick introduction to WebGL, the new standard for 3D rendering on the Web and a member of HTML5’s family of technologies. With this hands-on guide, you’ll learn essential WebGL development and production concepts, using the JavaScript 3D engine Three.js. At the end of the book, you’ll put everything together and build a full 3D application with WebGL. You don’t have to be a game development wizard or have 3D graphics experience to get started. If you use HTML, CSS, and JavaScript—and have familiarity with JQuery and Ajax—this book will help you gain a working knowledge of WebGL through clear and simple examples. Understand core 3D graphics concepts and how to implement them in WebGL Create WebGL sample pages as you learn, and build a racing game application in the final chapter Get to know the Three.js open source library in detail Develop working knowledge of graphics rendering, texturing, animation, interaction, and behaviors Seamlessly integrate 3D graphics with other content on the page Learn the tools, file formats, and techniques for developing robust and secure applications in a production environment "WebGL: Up and Running is an ideal introduction to the world of 3D programming on the web. It’s well-written, clear, and fun. I wish it had been around when I started learning!" —Giles Thomas, LearningWebGL.com




Google Apps Script


Book Description

Learn how to create dynamic web applications with Google Apps Script and take full advantage of your Google-hosted services. If you have basic coding skills and some JavaScript experience, this practical book shows you how Apps Script works, and provides step-by-step guidance for building applications you can use right away. Apps Script is handy for automating Google Apps tasks, but it also serves as a complete application platform. With this book, you’ll learn how to build, store, run, and share data-driven web apps right on Google Drive. You’ll have access to complete code and working examples that show you how everything fits together. Build an interactive Web App UI that runs on most web and mobile browsers Create a sample product catalog that displays custom data from a spreadsheet Develop an application to generate web forms from templates Use Apps Script to build a simple web-based database application Design a document workflow builder that users can quickly customize Create a Google form that lets you select and send email responses Debug your code and keep track of script problems after deployment




Full Stack Web Development with Backbone.js


Book Description

Learn how to build a full-stack application with Backbone.js by taking advantage of JavaScript modules, workflow automation, and Backbone’s interface building blocks. With this practical guide, author Patrick Mulder takes experienced backend developers and JavaScript programmers through the steps necessary to create a fully functional single-page application. Backbone’s rich ecosystem of plugins makes applications easier to design and scale, but knowing which tools to use for your project can be tricky. How do you combine views and the data layer with Backbone, or serve and deploy JavaScript assets? You’ll not only learn the answers to these and many other questions; you’ll also discover Backbone’s vast number of use cases. Get started quickly by using a Backbone.js and Browserify Track state and organize data with Backbone models and collections Capture events from users by using views and manipulating the DOM Combine Backbone views with advanced HTML templates Use Backbone to browse remote data sources from an API Authenticate and authorize client-side interactions Build a backend API with Node.js and Restify Set up workflow automation with Bower, Grunt, Yeoman, and RequireJS




HTML5 Canvas


Book Description

HTML5 is revolutionizing the way Web applications are developed, and this practical, hands-on book puts developers right in the middle of the action. The book also includes tips for Flash developers on how to transfer their skills to HTML5 programming.




Getting Started with p5.js


Book Description

With p5.js, you can think of your entire Web browser as your canvas for sketching with code! Learn programming the fun way--by sketching with interactive computer graphics! Getting Started with p5.js contains techniques that can be applied to creating games, animations, and interfaces. p5.js is a new interpretation of Processing written in JavaScript that makes it easy to interact with HTML5 objects, including text, input, video, webcam, and sound. Like its older sibling Processing, p5.js makes coding accessible for artists, designers, educators, and beginners. Written by the lead p5.js developer and the founders of Processing, this book provides an introduction to the creative possibilities of today's Web, using JavaScript and HTML. With Getting Started with p5.js, you'll: Quickly learn programming basics, from variables to objects Understand the fundamentals of computer graphics Create interactive graphics with easy-to-follow projects Learn to apply data visualization techniques Capture and manipulate webcam audio and video feeds in the browser




Core HTML5 Canvas


Book Description

One of HTML5’s most exciting features, Canvas provides a powerful 2D graphics API that lets you implement everything from word processors to video games. In Core HTML5 Canvas, best-selling author David Geary presents a code-fueled, no-nonsense deep dive into that API, covering everything you need to know to implement rich and consistent web applications that run on a wide variety of operating systems and devices. Succinctly and clearly written, this book examines dozens of real-world uses of the Canvas API, such as interactively drawing and manipulating shapes, saving and restoring the drawing surface to temporarily draw shapes and text, and implementing text controls. You’ll see how to keep your applications responsive with web workers when you filter images, how to implement smooth animations, and how to create layered, 3D scrolling backgrounds with parallax. In addition, you’ll see how to implement video games with extensive coverage of sprites, physics, collision detection, and the implementation of a game engine and an industrial-strength pinball game. The book concludes by showing you how to implement Canvas-based controls that you can use in any HTML5 application and how to use Canvas on mobile devices, including iOS5. This authoritative Canvas reference covers The canvas element—using it with other HTML elements, handling events, printing a canvas, and using offscreen canvases Shapes—drawing, dragging, erasing, and editing lines, arcs, circles, curves, and polygons; using shadows, gradients, and patterns Text—drawing, positioning, setting font properties; building text controls Images—drawing, scaling, clipping, processing, and animating Animations—creating smooth, efficient, and portable animations Sprites—implementing animated objects that have painters and behaviors Physics—modeling physical systems (falling bodies, pendulums, and projectiles), and implementing tweening for nonlinear motion and animation Collision detection—advanced techniques, clearly explained Game development—all aspects of game development, such as time-based motion and high score support, implemented in a game engine Custom controls—infrastructure for implementing custom controls; implementing progress bars, sliders, and an image panner Mobile applications—fitting Canvas apps on a mobile screen, using media queries, handling touch events, and specifying iOS5 artifacts, such as app icons Throughout the book, Geary discusses high-quality, reusable code to help professional developers learn everything they really need to know, with no unnecessary verbiage. All of the book’s code and live demonstrations of key techniques are available at corehtml5canvas.com.







D3 for the Impatient


Book Description

If you’re in a hurry to learn D3.js, the leading JavaScript library for web-based graphics and visualization, this book is for you. Written for technically savvy readers with a background in programming or data science, the book moves quickly, emphasizing unifying concepts and patterns. Anticipating common difficulties, author Philipp K. Janert teaches you how to apply D3 to your own problems. Assuming only a general programming background, but no previous experience with contemporary web development, this book explains supporting technologies such as SVG, HTML5, CSS, and the DOM as needed, making it a convenient one-stop resource for a technical audience. Understand D3 selections, the library’s fundamental organizing principle Learn how to create data-driven documents with data binding Create animated graphs and interactive user interfaces Draw figures with curves, shapes, and colors Use the built-in facilities for heatmaps, tree graphs, and networks Simplify your work by writing your own reusable components