Skip to content

Getting Started

NSIntegerMax edited this page Sep 30, 2018 · 13 revisions

Welcome to the Hydra wiki!

In the following we explain how to use Hydra to create drawings in the hyperbolic plane.

Getting Started with Hydra

Hydra interprets code line by line. You are allowed to have at most one statement in each line. Consequently, there is no need for an indicator (like ;) to separate statements. For example, the following Hydra code defines a variable a and assigns a value of 5.0 to it.

var a = 5

On the other hand, the following statements would be invalid and can not be interpreted:

var = 5 var b = 0
var a

Variables

As we have seen above, variables are defined using the keyword var. Once a variable is defined, the value it contains can be accessed or new values can be assigned to it:

var a = 5
var b = a + 2

Clone this wiki locally