Skip to main content
In Haskell land, there are no 'libraries' but rather 'packages' which provide 'modules'.
Source Link

Haskell, 143 136 bytes

This uses the gloss librarypackage:

import Graphics.Gloss main=animate(InWindow""(100,100)(0,0))white$ \t->color(makeColor 0.5 0 0.5 1).rotate(t*6).translate 38 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 38 0 $ circle 1 

Haskell, 143 136 bytes

This uses the gloss library:

import Graphics.Gloss main=animate(InWindow""(100,100)(0,0))white$ \t->color(makeColor 0.5 0 0.5 1).rotate(t*6).translate 38 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 38 0 $ circle 1 

Haskell, 143 136 bytes

This uses the gloss package:

import Graphics.Gloss main=animate(InWindow""(100,100)(0,0))white$ \t->color(makeColor 0.5 0 0.5 1).rotate(t*6).translate 38 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 38 0 $ circle 1 
Shorten code by removing some whitespace and '.0'.
Source Link

Haskell, 143143 136 bytes

This uses the gloss library:

import Graphics.Gloss main=animate(InWindow "" InWindow""(100,100) (0,0))white$ \t->color(makeColor 0.5 0.0 0.5 1.0).rotate(t*6).translate 38 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 38 0 $ circle 1 

Haskell, 143 bytes

This uses the gloss library:

import Graphics.Gloss main=animate(InWindow "" (100,100) (0,0))white$ \t->color(makeColor 0.5 0.0 0.5 1.0).rotate(t*6).translate 38 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 38 0 $ circle 1 

Haskell, 143 136 bytes

This uses the gloss library:

import Graphics.Gloss main=animate(InWindow""(100,100)(0,0))white$ \t->color(makeColor 0.5 0 0.5 1).rotate(t*6).translate 38 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 38 0 $ circle 1 
Fix up translation constant after I shrinked the window to 100/100 pixels... byte size is unchanged.
Source Link

Haskell, 143 bytes

This uses the gloss library:

import Graphics.Gloss main=animate(InWindow "" (100,100) (0,0))white$ \t->color(makeColor 0.5 0.0 0.5 1.0).rotate(t*6).translate 7538 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 7538 0 $ circle 1 

Haskell, 143 bytes

This uses the gloss library:

import Graphics.Gloss main=animate(InWindow "" (100,100) (0,0))white$ \t->color(makeColor 0.5 0.0 0.5 1.0).rotate(t*6).translate 75 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 75 0 $ circle 1 

Haskell, 143 bytes

This uses the gloss library:

import Graphics.Gloss main=animate(InWindow "" (100,100) (0,0))white$ \t->color(makeColor 0.5 0.0 0.5 1.0).rotate(t*6).translate 38 0$circle 1 

The prettier version is

import Graphics.Gloss purple :: Color purple = makeColor 0.5 0.0 0.5 1.0 main :: IO () main = animate (InWindow "" (100,100) (0,0)) white $ \t -> color purple . rotate (t * 6) . translate 38 0 $ circle 1 
Source Link
Loading