Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def json(self):
return {
'_type': 'circle',
'_data': {
'num': self.num,
'rad': pfloat(self.rad),
'mid': json_array(self.mid),
'dens': pfloat(self.dens),
'noise': self.noise,
'rgba': _export_color(self.rgba) if self.rgba is not None else None
}
def json(self):
return {
'_type': 'bzspl',
'_data': {
'num': self.num,
'pts': [json_array(self.pts[:, :, i]) for i in range(self.num)],
'closed': self.closed,
'dens': pfloat(self.dens),
'noise': self.noise,
'rgba': _export_color(self.rgba) if self.rgba is not None else None
}
def json(self):
return {
'_type': 'box',
'_data': {
'num': self.num,
'mid': json_array(self.mid),
's': json_array(self.s).pop(),
'dens': pfloat(self.dens),
'noise': self.noise,
'rgba': _export_color(self.rgba) if self.rgba is not None else None
}