martinfrances107 / word_map

A library for generating word clouds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WORD MAP

Rust 2021 Edition.

A library: Given a list of words and weight produce a image like one of the examples below. The size of words in the cloud is determined by the weight. A integer between 1 and 10.

It in a early development stage.

Examples

Can be found in the github repository associated with this crate.

Description

examples/blueprint

Generates a world cloud based on a number of (word, weight) pairs selected at random. As a confidence building exercise each block is displayed as a rectangle with the two definition points show as circles

A wordmap stylized as a Blueprint

examples/radial

The library allow the definition of bounding rectangle limiting the placement of new text block.

For example, this allow large text blocks to constrained to a central region while small text blocks can be placed over the full page.

Large text blocks are centrally placed

examples/generator

A simple tauri app to generate SVG images

The user inputs (word, weight) pairs for display. A slide allow the overall size of the test blocks to be set. Various colour gradients can be selected from a pull down menu.

It is in an early stage of development.

Tauri App: Text's area is used to color the block

About

A library for generating word clouds.


Languages

Language:Rust 100.0%