// //------------------ DOK FILE -------------------------------------------------- +Header core.2d.gif.maker =pkg core.2d.gif.maker =title core.2d.gif.maker =short encoding GIF files (still or animated) =desc This package contains functions to encode with the GIF file format (*.gif files). // // //------------------ PROTO ----------------------------------------------------- gifFromFrames +Proto gifFromFrames =type fun list [Bitmap Int] Int -> Str =mode function =pkg core.2d.gif.maker =impl mcy =link =desc This function computes the animated gif encoding of a list of frames. // +arg lFrames =type list [Bitmap Int] =desc A list of frames. Each frame is a tuple [bitmap duration], where duration is expressed in milliseconds. // +arg transparency =type Int =desc An RGB transparency color, or nil when no transparency is required // +arg result =type Str =desc A binary string encoding an animated gif content. // // //------------------ PROTO ----------------------------------------------------- gifFromBitmap +Proto gifFromBitmap =type fun Bitmap -> Str =mode function =pkg core.2d.gif.maker =impl mcy =link =desc This function computes the gif encoding of the bitmap bmp. // +arg bmp =type Bitmap =desc A bitmap // +arg result =type Str =desc A binary string encoding the bitmap as a gif content.