WinSoft.se
Development with focus on VB.NET
Browse: Home / Monkeybone

Monkeybone

Drawing a HTML5 heart with Monkeybone

Drawing a HTML5 heart with Monkeybone

By Anders Hesselbom on Sep 17, 10

This demonstration shows how you can create a Monkeybone picture from scratch and to export it as a HTML5 vector image. The required software is Monkeybone Viewer version 1.5 or later. Step 1: Create the file. To do this in Windows, you must make sure that you can see the file ending of known file [...]

Posted in Programs | Tagged Monkeybone | Leave a response

Monkeybone Viewer 1.4

By Anders Hesselbom on Sep 10, 10

The Monkeybone Viewer (1.4) has improved HTML5 export support and a new slideshow feature. The slideshow can display png, mob and jpg images in a specific folder. Download link on this page.

Posted in Programs | Tagged Monkeybone | Leave a response

Export HTML5 Canvas images

By Anders Hesselbom on Sep 4, 10

The latest addition to the Monkeybone Viewer (1.3) is the ability to save images as HTML5 Canvas images. This feature is not working perfect yet – there are still features that the Monkeybone image format can render, but not export correct. This feature should be correct in the next release. Download link on this page.

Posted in Programs | Tagged HTML5, Monkeybone | Leave a response

Monkeybone: The Spline instruction

By Anders Hesselbom on Aug 7, 10

Using notepad The Spline instruction has syntax similar to the Line instruction when named arguments are used, but each value has a magnet attached to it. The line will bend to the magnet. This will draw a red line on a black image, from the upper left to the lower right: Line #ff0000 X1:0 Y1:0 [...]

Posted in Programs | Tagged Monkeybone | Leave a response

Monkeybone: The Line instruction

By Anders Hesselbom on Apr 25, 10

There are two alternative ways to use the Line instruction in a Monkeybone image (a text file with .mob ending). You can either use named arguments or a list of coordinates. This example demonstrates both alternatives. The first V symbol is drawn using named arguments, the rest of the symbols are drawn using coordinate lists. [...]

Posted in Programs | Tagged Monkeybone | Leave a response

Monkeybone Viewer improvements, March 2010

By Anders Hesselbom on Mar 14, 10

The Monkeybone file format is frozen and a description of the format is added to the Help menu. Direct download.

Posted in Programs | Tagged Monkeybone | Leave a response

Monkeybone: The Bar instruction

By Anders Hesselbom on Mar 13, 10

The Bar instruction, as it appears in a Monkeybone Image (a text file with .mob ending) is a line with at least five parameters. The color of the bar, the X and Y position of the bar, the width and height of the bar. The following lines in a .mob file creates a green rectangular [...]

Posted in Microsoft .NET | Tagged Monkeybone | 2 Responses

Tint, Noise and Blur

By Anders Hesselbom on Jan 30, 10

This image simply demonstrates the filters that are available in Monkeybone. Tint overlays a color, Noise adds noise to the image and Blur decreases focus. This is the content of the .mob file: //Initialize the image. Clear 400×300 #707070 //Draw a background. Bar #4477ff X:0 Y:150 W:400 H:150 Set Line Thikness To 3 Line #ffff00 [...]

Posted in General | Tagged Monkeybone | Leave a response

Doing filters in Monkeybone

By Anders Hesselbom on Jan 27, 10

The filters in Monkeybone rely on regions to know what area on the image they apply to. The following lines define a picture 400 pixels wide and 300 pixels with black background. Also, it defines an invisible region. Clear 400×300 #000000 Region (10,10) (200,10) (200,200) (250,250) (60,250) (10,200) The Tint filter takes only arguments: The [...]

Posted in General | Tagged Monkeybone | Leave a response

Using regions

By Anders Hesselbom on Dec 29, 09

Regions are used to define a path or an area for later use. The Region instruction takes any number of coordinates (3 or more), and stores them in memory. The region can then be used for drawing. The following example is done in Notepad. I have created a text-file, changed the file ending from .txt [...]

Posted in General | Tagged Monkeybone | Leave a response

Some changes made to the viewer

By Anders Hesselbom on Dec 28, 09

Some changes are made to the Monkeybone viewer, that is not related to the Monkeybone format (*.mob files). These changes are made just to make the viewer more decent. Not only Monkeybone images can be opened. Now, you can open PNG and JPG files as well. Features such as viewing the error log, viewing the [...]

Posted in General | Tagged Monkeybone | Leave a response

The Monkeybone writer

By Anders Hesselbom on Dec 23, 09

The Monkeybone Viewer takes a mob file and displays its content on screen. The file stores instructions, such as Bar and Line, as Unicode text. These files can be created by hand using any text editor, such as Notepad (shown here, here, here and here). To automate the generation of the Monkeybone file, you can [...]

Posted in General | Tagged Monkeybone | Leave a response

Dual coordinate systems

Dual coordinate systems

By Anders Hesselbom on Nov 27, 09

This picture illustrates the different coordinate systems that Monkeybone is using. Both lines are drawn from 0, 0 to 30, 30. The yellow line is drawn using the coordinate system of the image itself, and the green line is drawn using the coordinate system of the diagram. The syntax is the same for DiagramLine and [...]

Posted in General | Tagged Monkeybone | Leave a response

Installation

By Anders Hesselbom on Nov 11, 09

The installation program can be downloaded from here or from the Monkeybone page. If you have a previous version of Monkeybone Viewer installed, don’t forget to uninstall that (from the Control Panel) before installing a new version. The installation program registers the MOB file ending with the viewer, so if you double click a Monkeybone [...]

Posted in General | Tagged Monkeybone | Leave a response

Drawing lines

By Anders Hesselbom on Nov 6, 09

The basic syntax for drawing lines is this: Use the Line instruction, pass a start coordinate (X1 and Y1) and an end coordinate (X2 and Y2) and a color. This example draws a line across the picture: //Set image size and background color. Clear 400×300 #ffffff //Simple line. Line #000000 X1:0 Y1:0 X2:400 Y2:300 The [...]

Posted in General | Tagged Monkeybone | Leave a response

Monkeybone: Creating a bar diagram using Notepad part 4/4

By Anders Hesselbom on Nov 4, 09

Continued from here. To finish this, I want to add some effects, and save it as a png file. Adding shadows To add shadows behind each bar, just add the Shadowed argument to each bar. Example: DiagramBar #ff0000 X:25  Y:0 W:20 H:200 Label=”Apples”  Value=”1″ Shadowed Adding gradient background To give the image a gradient background, [...]

Posted in General | Tagged Monkeybone | 1 Response

Monkeybone: Creating a bar diagram using Notepad part 3/4

By Anders Hesselbom on Nov 3, 09

Continued from here. Text can be added below and above each bar. To add text below, use the Label argument. To add text above, use the Value argument. I show the complete file content below; the latest additions are highlighted with bold font. The text below each bar is a fruit name, and the text [...]

Posted in General | Tagged Monkeybone | 1 Response

Monkeybone: Creating a bar diagram using Notepad part 2/4

By Anders Hesselbom on Nov 1, 09

Continued from here. Bars can be added to a diagram using the DiagramBar instruction. DiagramBar differs from the Bar instruction in that it use a virtual coordinate system (from a previous Diagram instruction) with its zero position in the left bottom corner, as opposed to the image itself that has its zero position in the [...]

Posted in General | Tagged Monkeybone | 1 Response

Monkeybone: Creating a bar diagram using Notepad part 1/4

By Anders Hesselbom on Nov 1, 09

To make a diagram by hand using Notepad, start Notepad, click File and Save as. Change the filter from txt to All files. Provide a filename that ends with .mob (I will use bardiagram.mob in my example) and change the encoding to UTF-8. Then, click save. Keep Notepad open and write your instructions there. Open [...]

Posted in General | Tagged Monkeybone | 1 Response

Drawing bars

By Anders Hesselbom on Oct 31, 09

To do bars, the Bar instruction is used. It takes the color, position and size as arguments. This code… //Set image size and background color. Clear 100×100 #003366 //Draw a dark blue bar that covers most of the image. Bar #225599 X:10 Y:10 W:80 H:80 …produces this blue rectangle: To do a bar that is [...]

Posted in General | Tagged Monkeybone | Leave a response

Short introduction to Monkeybone

By Anders Hesselbom on Oct 31, 09

The posts that I am doing on Monkeybone might only be interesting if you are develop programs that do charting or if you want to be able to produce nice looking charts. Monkeybone is a vector image format, mainly designed for producing bar charts and line charts. Monkeybone images are text files (UTF-8) that are [...]

Posted in General | Tagged Monkeybone | Leave a response

Comments

  • ahesselbom on The Genius of Rowan Atkinson
  • JohnHoudi on Think Different – like everybody else
  • ahesselbom on Think Different – like everybody else
  • ahesselbom on Public Service TV and Sean Banan
  • Mahesh Kumar Sanka on Using the DayView control

Search

Navigation

  • Programs
  • .NET Ctrls
  • Download
  • Links
  • Gallery
  • About

Categories

  • General
    • Geeky
    • Personal
    • Programs
    • Science
    • Skeptical movement
  • Microsoft .NET
    • PowerShell
    • Visual Basic 10
    • Visual Basic 8
    • Visual Basic 9
    • Visual Studio 10
    • Visual Studio 11

Blogroll

  • André Henriksson
  • Anna Forss
  • Christofer Löf
  • Dag König
  • Danwei Tran
  • DotNetKicks.com
  • Elegant Code
  • Eric Lippert
  • Fredrik Wall
  • Johan Lindfors
  • Kellabyte
  • Marc Dormey
  • Marcus Ahnve
  • Mikael Deurell
  • Mikael Söderström
  • Robert Folkesson
  • Roger Alsing
  • Scott Guthrie
  • Tess Ferrandez
  • The Code Junkie

Övrigt

  • Radio 1 101,9
  • Radio Houdi
  • Remix.kwed.org
  • Veckans utbrott!

Science and scepticism

  • Camilla Grepe
  • Pharyngula (PZ Myers)
  • Richard Dawkins Foundation
  • Sam Harris

Vetenskap och skepticism

  • Anders Hesselbom
  • Ateism.nu
  • Evolutionsteori.se
  • Orsakverkan
  • Skeptikerpodden
  • Tidningen Bright