• Home >>
  • Curl - Code Samples
Japanese
Curl, Inc. Logo
Richer Internet Applications
   Developers
      Code Samples
      XML Document Model
      Community
      Books
      FAQ
      Release Notes
         Curl Mac Beta
         Curl RTE 5.0.2
         Curl IDE 5.0.1002
         Curl RTE 4.0.4
         Curl RTE 3.0.10

Code Samples

Several small applications developed using Curl can be executed by following links from this page. They illustrate various capabilities of the Curl platform, particularly in the area of dynamic 2D and 3D graphics.

*To view Curl applications, you need to download and install the Curl RTE. This fast, easy download is your key to viewing some of the most data-intensive, graphic-rich applications you will see on the Web today.

Click here to download the RTE now.

Please note that these demos are unsupported, "as is" software.

2D Graphics

Water Picture
download source
View an image through ripples in a simulated watery surface.
Fire Simulator
download source
This example displays flames by simulating them mathematically, not just by showing a series of precomputed images.
Image Filters
download source
Explore the operation of various 2D image filters that are built into the Curl RTE.

3D Graphics

Rotating Teapot
download source
The "teapot" is a classic example of 3D rendering. The Curl RTE renders it using hardware-accelerated 3D graphics.
Molecule Viewer
download source
Hardware-accelerated rendering is used to show a 3D view of chemical molecules. Use the Help / About the Demo menu command to learn how to operate the demo.
3D Bar Chart
download source
3D rendering is used to display a bar graph. You can change the viewpoint by dragging with the mouse.
Ray Tracing
download source
This example does 3D rendering using rendering algorithms directly programmed in Curl software, showing the high performance of code generated by the Curl compiler. The Curl content language is also showcased, since active elements are mixed in with, and controlled from, the accompanying descriptive text.

Other Examples

Whack-A-Mole Game
download source
This silly little game illustrates integrating audio in with a user interface implemented using Curl.
PDF Viewer
view source
This demo illustrates embedding an ActiveX component (in this case, an Internet Explorer window displaying a PDF viewer) into a Curl window. Note that this applet depends on ActiveX, so it only works on the Windows® platform.
* To view this demo, you need to configure Curl to give privilege to applets from www.curl.com. Go here to learn how to do this.