www.meshly.com
   Login | Connect to Meshly
Most Popular Channels:
Member View: jason » javascript - (all posts tagged javascript)
3
votes

A cool way to draw generic triangles efficiently in Javascript. This will let you create 3D objects that can be rotated or scaled. Still a bit slow, but hey, it's Javascript.

"The trick is to take advantage of the beveled edges on a div border to make right triangles. By setting the div height and width to 0px, then setting 3 borders to transparent and 1 border to an opaque color, you can make a right triangle of various sizes by adjusting the border widths.

Using some fancy geometry, you can then cut any type of triangle into a series of successively smaller right triangles. Now, in real life, the right triangles would get infinitely small (and numerous), but in the digital world, they only need to get as small as a single pixel before we don't care anymore."

Submitted by jason - 2007-07-20 08:30:17
Channels - blogcadre hackszine webdev
Tags - hack javascript 3d modeling geometry

Comment on this post

2
votes

A somewhat crazy hack to optimize page load time by combining CSS and Javascript into a single file.

This makes use of some css and js parser peculiarities in common browsers.

Submitted by jason - 2007-05-06 18:23:24
Channels - hackszine
Tags - web hack css javascript

Comment on this post

2
votes

A simple utility that will consume data from a published Google Spreadsheet, and generate graphs using the javascript PlotKit library.

It also generates all the javascript code for you, so you can cut and paste the output as a widget into your own site.

Submitted by jason - 2007-04-18 20:54:18
Channels - hackszine
Tags - google javascript chart ajax spreadsheet plotkit graph

Comment on this post

2
votes

PlotKit is a javascript library that uses Canvas and SVG to dynamically generate chart, line and pie charts to display in an HTML DIV.

Submitted by jason - 2007-04-18 20:51:34
Channels - hackszine
Tags - javascript chart plot graphing

Comment on this post

Recent Channels


Recent Tags




Track This Page

Place the contents of this page in your site. Just set your desired title, height, and width. Then, copy and paste the embed code into your layout.

Title:
Width:
Height:

Copy & Paste Embed Code:

preview