Public
Edited
Feb 26, 2022
Insert cell
Insert cell
spec = d3.json("https://shiplab.github.io/vesseljs/examples/ship_specs/PX121.json");
Insert cell
md`Create a ship object:`
Insert cell
ship = new Vessel.Ship(spec);
Insert cell
Insert cell
states = new Vessel.ShipState();
Insert cell
Insert cell
wave = new Vessel.WaveCreator([0.6, 2.25, 180]);
Insert cell
Insert cell
wave.setWaveDef(0.6, 2.25, 180);
Insert cell
Insert cell
wavMo = new Vessel.WaveMotion(ship, states, wave);
Insert cell
wavMo.returnOutput();
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more