circule 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +28 -7
- data/circule.gemspec +1 -1
- data/exe/circule +1 -1
- data/lib/circule/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87915c12b5e6c349eb173949f59eda6e6fbd706ec7d4a9d44ea1fa1ba550714c
|
4
|
+
data.tar.gz: 92fbd34f5f934f96decb84a3b7e54568cfaef6e41f9f9988701ece62907c9fd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 423863eceeeb72a2024b63be95c5e10975dd197fe887a98b3d79589b39c617c9ed891fa27bc37ffb41459dd75ad0e669d8ea40baf366b7cb954cabaa10f1adf0
|
7
|
+
data.tar.gz: d5b08d2b430c2b81533151139889245029bf233c4ea08015601e3587f016cc736ecd52804494e989c4da17ecc82e04274fb18d0c54cd97ab1660b9584e5e67e0
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# Circule
|
2
2
|
|
3
|
-
|
4
|
-
need to be able to package up your Ruby library into a gem. Put your
|
5
|
-
Ruby code in the file `lib/circule`. To experiment with that code, run
|
6
|
-
`bin/console` for an interactive prompt.
|
3
|
+
Generate an icon of overlapping circles derived from a hash.
|
7
4
|
|
8
|
-
|
5
|
+
1. Slice the hash into 16-bit slices starting at bit `bn`, stepping `s`
|
6
|
+
bits at a time, ending after bit `bn`.
|
7
|
+
|
8
|
+
2. From each slice define a circle such that bits 0 through 4 is the `x`
|
9
|
+
coordinate of the center, bits 5 through 9 is the `y` coordinate of
|
10
|
+
the center, and bits 10 through 15 is the radius of the circle.
|
11
|
+
|
12
|
+
3. Each pixel in the output will be colored based on the number of
|
13
|
+
circles that point is inside.
|
9
14
|
|
10
15
|
## Installation
|
11
16
|
|
@@ -25,7 +30,23 @@ Or install it yourself as:
|
|
25
30
|
|
26
31
|
## Usage
|
27
32
|
|
28
|
-
|
33
|
+
### CLI Options
|
34
|
+
|
35
|
+
| Short Option | Long Option | Description |
|
36
|
+
|--------------|---------------|----------------------------------|
|
37
|
+
| -h HEXSTRING | --hex | Use this hash |
|
38
|
+
| -b INTEGER | --btc-block | Use hash from this bitcoin block |
|
39
|
+
| -0 INTEGER | --bit0 | Starting bit |
|
40
|
+
| -s INTEGER | --step | Step bit |
|
41
|
+
| -n INTEGER | --bitn | Starting bit |
|
42
|
+
| -c INTEGER | --canvas | Canvas size |
|
43
|
+
| -x INTEGER | --ox | Offset x |
|
44
|
+
| -y INTEGER | --oy | Offset y |
|
45
|
+
| -z INTEGER | --zoom | Zoom in GUI |
|
46
|
+
| -f FILENAME | --file | Use hash from file |
|
47
|
+
| -s FILENAME | --save | Save image to file |
|
48
|
+
| -g | --gui | Run GUI (requires glimmer & tk) |
|
49
|
+
| -i | --interactive | Run GUI with pry |
|
29
50
|
|
30
51
|
## Development
|
31
52
|
|
@@ -41,7 +62,7 @@ push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
41
62
|
|
42
63
|
## Contributing
|
43
64
|
|
44
|
-
Bug reports and pull requests are welcome on
|
65
|
+
Bug reports and pull requests are welcome on GitLab at
|
45
66
|
https://gitlab.com/fjc/circule.
|
46
67
|
|
47
68
|
## License
|
data/circule.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ['Frank J. Cameron']
|
9
9
|
spec.email = ['fjc@fastmail.net']
|
10
10
|
|
11
|
-
spec.summary = ''
|
11
|
+
spec.summary = 'Generate an icon of overlapping circles derived from a hash.'
|
12
12
|
spec.homepage = 'https://gitlab.com/fjc/circule'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
spec.required_ruby_version = '>= 2.7.0'
|
data/exe/circule
CHANGED
data/lib/circule/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: circule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank J. Cameron
|
@@ -69,5 +69,5 @@ requirements: []
|
|
69
69
|
rubygems_version: 3.1.6
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
|
-
summary:
|
72
|
+
summary: Generate an icon of overlapping circles derived from a hash.
|
73
73
|
test_files: []
|