Paint an SVG Into a Waterfall
Paint an SVG into a waterfall display. The browser rasterizes the vector art at the size the file declares, so this paints 288 pixels wide like the PNG and JPEG examples; press Browse in the Image File Source properties to paint a picture from your own computer instead.
- Author gr-paint (Ron Economos, W6RZ)
- Category Spectrum Painting
- Blocks 5
- Connections 3
- File
paint/paint_image_waterfall_svg.grc
Blocks used
| Block | Module | Used |
|---|---|---|
| Image File Source | gr-paint | 1 |
| QT GUI Waterfall Sink | GNU Radio | 1 |
| Spectrum Painter | gr-paint | 1 |
| Throttle | GNU Radio | 1 |
| Variable | GNU Radio | 1 |
Flowgraph source
paint/paint_image_waterfall_svg.grc
options:
parameters:
author: gr-paint (Ron Economos, W6RZ)
copyright: ''
description: Paint an SVG into a waterfall display. The browser rasterizes the vector art at the size the file declares, so this paints 288 pixels wide like the PNG and JPEG examples; press Browse in the Image File Source properties to paint a picture from your own computer instead.
generate_options: qt_gui
id: Paint_an_SVG_Into_a_Waterfall
title: Paint an SVG Into a Waterfall
states:
coordinate: [10, 10]
rotation: 0
state: enabled
blocks:
- name: samp_rate
id: variable
parameters:
comment: ''
value: '163840'
states:
coordinate: [600, 10]
rotation: 0
state: enabled
- name: image
id: paint_image_source
parameters:
affinity: ''
alias: ''
autocontrast: '0'
bt709_map: '1'
comment: ''
image_file: /example_images/gnuradio_world_vector.svg
image_flip: '0'
image_invert: '0'
maxoutbuf: '0'
minoutbuf: '0'
repeatmode: '1'
states:
coordinate: [10, 130]
rotation: 0
state: enabled
- name: painter
id: paint_paint_bc
parameters:
affinity: ''
alias: ''
comment: ''
equalization: EQUALIZATION_OFF
maxoutbuf: '0'
minoutbuf: '0'
randomsrc: INTERNAL
repeats: '4'
width: '288'
states:
coordinate: [370, 160]
rotation: 0
state: enabled
- name: throttle
id: blocks_throttle2
parameters:
affinity: ''
alias: ''
comment: ''
ignoretag: 'True'
limit: time
maximum: '0.02'
maxoutbuf: '0'
minoutbuf: '0'
samples_per_second: samp_rate
type: complex
vlen: '1'
states:
coordinate: [710, 150]
rotation: 0
state: enabled
- name: waterfall
id: qtgui_waterfall_sink_x
parameters:
affinity: ''
alias: ''
alpha1: '1'
axislabels: 'True'
color1: '0'
comment: ''
fc: '0'
fftsize: '4096'
grid: 'False'
int_max: '-57'
int_min: '-83'
label1: ''
legend: 'True'
maxoutbuf: '0'
minoutbuf: '0'
name: Painted Spectrum
samp_rate: samp_rate
update_time: '0.025'
states:
coordinate: [1040, 140]
rotation: 0
state: enabled
connections:
- [image, '0', painter, '0']
- [painter, '0', throttle, '0']
- [throttle, '0', waterfall, '0']
metadata:
file_format: 1
grc_version: 3.11.0.0