Commit Graph

1080 Commits (167c7c11d284e0d589ade55b18bc859f084087ae)

Author SHA1 Message Date
Andy Meneely e43f68d323 Ported text command over to the new args classes
* Involved a big rewrite of arg_loader to accomodate nil and false better. Sadly this meant dumping ||= for if-statements. Blech, but works.
  * Updates to regression tests are pretty trivial.
  * Removed graphics_text_spec because, even though it looks useful, with rake sanity it really isn't.
  * Exposed font on deck as well

Cleaned up graphics/text.rb too!
2015-07-07 23:59:23 -04:00
Andy Meneely 11f827cffa Documenting zip/map best practice, and learning Ruby Array
[skip ci]
2015-07-06 11:23:26 -04:00
Andy Meneely cc5c540be8 Updated regression specs
Mostly from changing colorify to always converting to a string
New ranges example for the idiom
New text options example for dotted

[skip ci]
2015-07-03 20:16:18 -04:00
Andy Meneely 1b22542655 Remove dead code 2015-07-03 16:06:00 -04:00
Andy Meneely 2dd3fc3365 Documented a range idiom
In reaction to #90

[skip ci]
2015-07-03 16:01:44 -04:00
Andy Meneely 79814a43ea Start migrating text over to new args system
Almost there. It's working fine with the sample, but next it's time to write validators to get all this arg logic out of text.rb and make it just about drawing text.

Yes, unit tests aren't updated yet.
[skip ci]
2015-07-03 02:11:32 -04:00
Andy Meneely 6aecdbbb4a Adding custom colors to the draw arg 2015-07-03 00:47:46 -04:00
Andy Meneely f16f285a0a Update expected draw_shapes.rb PNG for sanity test 2015-06-16 21:20:06 -04:00
Andy Meneely c931a860a1 Args refactoring: combine polygon, tri, and bezier args into coords
As a rule, I think it's better to group args classes together have some extra overhead of extracting unused parameters. For example, we don't *need* to extract "n" for the circle, but the ease of having logically grouped classes is better than having tons of different classes tailored to each command.
2015-06-16 21:14:43 -04:00
Andy Meneely b5903293d7 Layouts use strings as keys, so that must be realistic 2015-06-11 17:20:02 -04:00
Andy Meneely 78ee185fde Update sample to use cleaner syntax 2015-06-11 17:19:32 -04:00
Andy Meneely 243b3836c4 Refactor to remove instance_eval
When you have a hammer...
2015-06-11 17:19:17 -04:00
Andy Meneely c5e00f1877 Employing the new args refactoring on all shapes 2015-06-11 16:16:08 -04:00
Andy Meneely 8a7841d64f Add dash option to drawing operations
Currently only impacts rect, but it will impact others with the new design shortly
2015-06-08 15:26:33 -04:00
Andy Meneely 12c5cd675b Added line cap and join settings for rect and curve
More forthcoming - these are proof-of-concept
2015-06-08 14:17:46 -04:00
Andy Meneely c1e410fe72 First foray into args class refactoring: rect
So far, I really like this approach. It allows us to push validation logic out of the Card class and into its own set of classes that can be more easily tested.

Fixes #75, but we've got a lot more work to do in getting this full scale
2015-06-08 13:36:23 -04:00
Andy Meneely 6c60f21bb0 Refactored drawing to get fill_n_stroke
Contributes to #75
2015-06-04 16:40:55 -04:00
Andy Meneely 34851be5d7 Put release date on the changelog 2015-05-27 15:55:12 -04:00
Andy Meneely 9801188b47 Update expected png for star 2015-05-26 21:09:19 -04:00
Andy Meneely da0fe1b118 Onward and upward. 2015-05-26 21:04:15 -04:00
Andy Meneely 981a9eab0e I dub thee v0.6.0 2015-05-26 20:57:58 -04:00
Andy Meneely d957addfc3 Enabling regression tests again 2015-05-26 20:56:58 -04:00
Andy Meneely a20100f3f8 Hiding private stuff from public documentation 2015-05-26 20:55:11 -04:00
Andy Meneely 07fdfa49d5 README tweaks
[skip ci]
2015-05-26 20:49:12 -04:00
Andy Meneely 3bbc787025 Add polygon method to dsl
Testing and documentation too.

Closes #67
2015-05-22 06:12:48 -04:00
Andy Meneely f0b71531aa Allowing close_path to pass through 2015-05-22 05:59:08 -04:00
Andy Meneely c3e76a93aa Fix a syntax error 2015-05-22 05:36:32 -04:00
Andy Meneely 6d8e44920b Allow unit conversion on radius for star 2015-05-22 05:32:27 -04:00
Andy Meneely 6cf6ec8099 Fix documentation for shapes 2015-05-22 05:32:03 -04:00
Andy Meneely b1ad59b56f Document star in changelog 2015-05-22 02:58:29 -04:00
Andy Meneely 0853b6a708 Finish regression testing of star 2015-05-21 18:29:38 -04:00
Andy Meneely b8536bcabe Regression and sanity testing for star
Closes #72
2015-05-21 09:29:01 -04:00
Andy Meneely 4b63716dfc Star feature works, testing is still pending 2015-05-21 09:29:01 -04:00
Andy Meneely 14e04a89c7 Started the star feature
Contributes to #72

[skip ci]
2015-05-21 09:29:00 -04:00
Andy Meneely ae1a7bd084 Set a non-symbol default for text embeds
Fixes #73, but in #74 we'll get it right.
2015-05-20 18:30:08 -04:00
Andy Meneely 5ee3df5138 Update changelog for hand command, and other tweaks
[skip ci]
2015-05-19 17:03:42 -04:00
Andy Meneely 0154b13e68 Use cairo context wrapper for fill colors on marketing
Actually deliver what I promised

Fixes #71
2015-05-19 16:49:13 -04:00
Andy Meneely a86974d5b8 Regression and sanity testing 2015-05-19 15:02:54 -04:00
Andy Meneely 31b583d134 Implementation of hand 2015-05-19 14:40:21 -04:00
Andy Meneely 824e26d2c2 Hacked together a basic example to work from 2015-05-13 09:42:14 -04:00
Andy Meneely f0f9b7680d Starting a basic hand command 2015-05-11 23:30:30 -04:00
Andy Meneely 071f06bdc2 Removing an old side-note.
[skip ci]
2015-04-30 14:38:32 -04:00
Andy Meneely d80d3884b1 Cleanup 2015-04-30 11:48:47 -04:00
Andy Meneely dab544a53b Add ellipse method
Also experimenting with using stroke_preserve, which in turn may make the other methods less repetitive.

Closes #66
2015-04-30 11:48:21 -04:00
Andy Meneely 9b4eb7f00b Hide generated folders from SublimeText 2015-04-30 10:34:39 -04:00
Andy Meneely 7c829c21e9 Switch to YARD's master branch now that frameless is integrated 2015-04-30 10:34:09 -04:00
Andy Meneely 6316a5ee0c Refactor the sublimetext project file 2015-04-30 10:18:28 -04:00
Andy Meneely ac7769237c Fix the csv_import.rb sample to function properly 2015-04-30 10:05:34 -04:00
Andy Meneely 71defb9e33 Fix color handling with text outline stroking
Needed to set squibcolor prior to translating the coordinate system so that gradients are relative to the card (as is documented). This also means stroking is done AFTER drawing the text, which looks better anyway.
2015-04-30 09:54:41 -04:00
Andy Meneely 2e84cf4e6a Update load_images expected png for sanity testing 2015-04-30 09:37:57 -04:00