summaryrefslogtreecommitdiff
path: root/lisp/textmodes/artist.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2015-05-18 20:54:24 -0400
committerGlenn Morris <rgm@gnu.org>2015-05-18 20:54:24 -0400
commitd464818ca2fdae2655a312c0f3fa8b66481c6522 (patch)
treed354a732dcfbfb578d9b84129f68265117eec9ed /lisp/textmodes/artist.el
parentd13f8874480e8687976f4a5ce4f5c9633233c782 (diff)
downloademacs-d464818ca2fdae2655a312c0f3fa8b66481c6522.tar.gz
* lisp/calculator.el (calculator-funcall):
* lisp/textmodes/artist.el (artist-spray-random-points): Use standard degree/radian conversion utilities.
Diffstat (limited to 'lisp/textmodes/artist.el')
-rw-r--r--lisp/textmodes/artist.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index 930c39c82cc..73521605436 100644
--- a/lisp/textmodes/artist.el
+++ b/lisp/textmodes/artist.el
@@ -2958,7 +2958,7 @@ Blanks in the rendered text overwrite any text in the buffer."
Returns a list of points. Each point is on the form (X1 . Y1)."
(let ((points))
(while (> n 0)
- (let* ((angle (* (random 359) (/ float-pi 180)))
+ (let* ((angle (degrees-to-radians (random 359)))
(dist (random radius))
(point (cons (round (* dist (cos angle)))
(round (* dist (sin angle))))))